hide dead NPCs for EntityHider (#1197)

This commit is contained in:
kecleon
2019-07-30 07:17:39 -07:00
committed by Lucwousin
parent 3701cfa294
commit 659bfe889c
5 changed files with 40 additions and 0 deletions

View File

@@ -153,4 +153,15 @@ public interface EntityHiderConfig extends Config
return false;
}
@ConfigItem(
position = 12,
keyName = "hideDeadNPCs",
name = "Hide Dead NPCs",
description = "Configures whether or not NPCs that just died are hidden"
)
default boolean hideDeadNPCs()
{
return false;
}
}

View File

@@ -112,6 +112,8 @@ public class EntityHiderPlugin extends Plugin
client.setAttackersHidden(config.hideAttackers());
client.setProjectilesHidden(config.hideProjectiles());
client.setDeadNPCsHidden(config.hideDeadNPCs());
}
@Override
@@ -136,6 +138,8 @@ public class EntityHiderPlugin extends Plugin
client.setAttackersHidden(false);
client.setProjectilesHidden(false);
client.setDeadNPCsHidden(false);
}
private boolean isPlayerRegionAllowed()