mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-25 18:47:40 +01:00
Try fixing memory leak with advancements
This commit is contained in:
parent
0e25c352a0
commit
78992529e5
@ -196,6 +196,12 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
|
|||||||
return damaged;
|
return damaged;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void die() {
|
||||||
|
super.die();
|
||||||
|
getAdvancementData().a();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void die(DamageSource damagesource) {
|
public void die(DamageSource damagesource) {
|
||||||
// players that die are not normally removed from the world. when the
|
// players that die are not normally removed from the world. when the
|
||||||
@ -326,7 +332,6 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
|
|||||||
navigation = new PlayerNavigation(this, world);
|
navigation = new PlayerNavigation(this, world);
|
||||||
NMS.setStepHeight(getBukkitEntity(), 1); // the default (0) breaks step climbing
|
NMS.setStepHeight(getBukkitEntity(), 1); // the default (0) breaks step climbing
|
||||||
setSkinFlags((byte) 0xFF);
|
setSkinFlags((byte) 0xFF);
|
||||||
NMS.setDummyAdvancement(getBukkitEntity());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user