Add config for clearing action manager on death

This commit is contained in:
Kam committed 2025-06-29 14:40:49 -04:00
1 parent 8296a008d4
commit 585ebdcc2f
3 files changed
+11 -2

No files matched your search

@@ -32,6 +32,7 @@ import noppes.npcs.controllers.CustomEffectController;
import noppes.npcs.controllers.PartyController;
import noppes.npcs.controllers.PlayerDataController;
import noppes.npcs.controllers.ScriptController;
import noppes.npcs.config.ConfigScript;
import noppes.npcs.controllers.data.*;
import noppes.npcs.entity.EntityNPCInterface;
import noppes.npcs.items.ItemNpcTool;
@@ -496,7 +497,8 @@ public class ScriptPlayerEventHandler {
EntityPlayer player = (EntityPlayer) event.entityLiving;
PlayerData playerData = PlayerData.get(player);
// playerData.actionManager.clear();
if (ConfigScript.ClearActionsOnDeath)
playerData.actionManager.clear();
}
if (event.source.getEntity() instanceof EntityPlayerMP) {