hide dead NPCs for EntityHider (#1197)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user