mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 10:19:08 +00:00
ActionManager no longer cleared on entity's death/reset
This commit is contained in:
1 parent
203a794950
commit
dd4b0c8b4b
2 files changed
+2
-2
No files matched your search
@@ -496,7 +496,7 @@ public class ScriptPlayerEventHandler {
|
||||
|
||||
EntityPlayer player = (EntityPlayer) event.entityLiving;
|
||||
PlayerData playerData = PlayerData.get(player);
|
||||
playerData.actionManager.clear();
|
||||
// playerData.actionManager.clear();
|
||||
}
|
||||
|
||||
if (event.source.getEntity() instanceof EntityPlayerMP) {
|
||||
|
||||
@@ -1168,7 +1168,7 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
setHealth(getMaxHealth());
|
||||
dataWatcher.updateObject(14, 0); // animation Normal
|
||||
dataWatcher.updateObject(15, 0);
|
||||
actionManager.clear();
|
||||
// actionManager.clear();
|
||||
combatHandler.reset();
|
||||
this.setAttackTarget(null);
|
||||
this.setRevengeTarget(null);
|
||||
|
||||
Reference in new issue
Block a user