fix dragons

This commit is contained in:
Sen 2025-08-05 19:21:20 +02:00
parent da3dfaf37c
commit 9a31abbb41
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
20 changed files with 271 additions and 995 deletions

View file

@ -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) {