fix dragons
This commit is contained in:
parent
da3dfaf37c
commit
9a31abbb41
20 changed files with 271 additions and 995 deletions
|
@ -877,25 +877,11 @@ public final class WorldServer extends AWorldServer {
|
|||
protected void onEntityAdded(Entity entityIn) {
|
||||
this.trackEntity(entityIn);
|
||||
this.entityIds.addKey(entityIn.getId(), entityIn);
|
||||
Entity[] aentity = entityIn.getParts();
|
||||
|
||||
if(aentity != null) {
|
||||
for(int i = 0; i < aentity.length; ++i) {
|
||||
this.entityIds.addKey(aentity[i].getId(), aentity[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void onEntityRemoved(Entity entityIn) {
|
||||
this.untrackEntity(entityIn);
|
||||
this.entityIds.removeObject(entityIn.getId());
|
||||
Entity[] aentity = entityIn.getParts();
|
||||
|
||||
if(aentity != null) {
|
||||
for(int i = 0; i < aentity.length; ++i) {
|
||||
this.entityIds.removeObject(aentity[i].getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void strikeLightning(double x, double y, double z, int color, int damage, boolean fire, EntityLiving summoner) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue