AutoRespawn more clear naming and description

"Anti Bug" -> "Anti Glitch Screen"
This commit is contained in:
blockparole 2019-11-21 23:09:55 +01:00
parent 8390451ef8
commit 9bc05ebac8
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ public class AutoRespawn extends Module {
private Setting<Boolean> respawn = register(Settings.b("Respawn", true));
private Setting<Boolean> deathCoords = register(Settings.b("DeathCoords", false));
private Setting<Boolean> antiBug = register(Settings.b("Anti Bug", true));
private Setting<Boolean> antiGlitchScreen = register(Settings.b("Anti Glitch Screen", true));
@EventHandler
public Listener<GuiScreenEvent.Displayed> listener = new Listener<>(event -> {
@ -31,7 +31,7 @@ public class AutoRespawn extends Module {
Command.sendChatMessage(String.format("You died at x %d y %d z %d", (int) mc.player.posX, (int) mc.player.posY, (int) mc.player.posZ));
}
if (respawn.getValue() || (antiBug.getValue() && mc.player.getHealth() > 0)) {
if (respawn.getValue() || (antiGlitchScreen.getValue() && mc.player.getHealth() > 0)) {
mc.player.respawnPlayer();
mc.displayGuiScreen(null);
}