diff --git a/src/main/java/me/zeroeightsix/kami/command/commands/SignBookCommand.java b/src/main/java/me/zeroeightsix/kami/command/commands/SignBookCommand.java index 5f201c30..0e71fdca 100644 --- a/src/main/java/me/zeroeightsix/kami/command/commands/SignBookCommand.java +++ b/src/main/java/me/zeroeightsix/kami/command/commands/SignBookCommand.java @@ -46,7 +46,7 @@ public class SignBookCommand extends Command { futureTitle = futureTitle.replaceAll("#n", "\n"); futureTitle = futureTitle.replaceAll("null", ""); //Random extra null added sometimes - if(futureTitle.length() > 31){ + if (futureTitle.length() > 31) { Command.sendChatMessage("Title cannot be over 31 characters."); return; } @@ -57,8 +57,8 @@ public class SignBookCommand extends Command { NBTTagCompound bookData = is.getTagCompound(); - if(is.hasTagCompound()){ - if(bookData != null) { + if (is.hasTagCompound()) { + if (bookData != null) { is.setTagCompound(bookData); } is.getTagCompound().setTag("title", new NBTTagString(futureTitle)); diff --git a/src/main/java/me/zeroeightsix/kami/gui/kami/theme/staticui/TabGuiUI.java b/src/main/java/me/zeroeightsix/kami/gui/kami/theme/staticui/TabGuiUI.java index cee876dc..77dddb47 100644 --- a/src/main/java/me/zeroeightsix/kami/gui/kami/theme/staticui/TabGuiUI.java +++ b/src/main/java/me/zeroeightsix/kami/gui/kami/theme/staticui/TabGuiUI.java @@ -59,7 +59,7 @@ public class TabGuiUI extends AbstractComponentUI { int textY = 1; for (int i = 0; i < component.tabs.size(); i++) { String tabName = component.tabs.get(i).name; - /*if(i == selected) + /*if (i == selected) tabName = (tabOpened ? "<" : ">") + tabName;*/ GL11.glEnable(GL11.GL_TEXTURE_2D); @@ -95,7 +95,7 @@ public class TabGuiUI extends AbstractComponentUI { Module feature = tab.features.get(i); String fName = (feature.isEnabled() ? "\u00A7c" : "\u00A77") + feature.getName(); - /*if(i == tab.selected) + /*if (i == tab.selected) fName = "\u00A7b" + fName;*/ GL11.glEnable(GL11.GL_TEXTURE_2D); diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/combat/Pull32k.java b/src/main/java/me/zeroeightsix/kami/module/modules/combat/Pull32k.java index cbad2477..9e565ae7 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/combat/Pull32k.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/combat/Pull32k.java @@ -22,7 +22,7 @@ public class Pull32k extends Module{ enchantedSwordIndex = i; foundsword = true; } - if(!foundsword) { + if (!foundsword) { enchantedSwordIndex = -1; foundsword = false; } @@ -45,7 +45,7 @@ public class Pull32k extends Module{ if (enchantedSwordIndex == -1) { return; } - if(enchantedSwordIndex != -1) { + if (enchantedSwordIndex != -1) { for (int i = 0; i < 9; i++) { ItemStack itemStack = mc.player.inventory.mainInventory.get(i); if (itemStack.getItem() instanceof ItemAir) { @@ -65,7 +65,7 @@ public class Pull32k extends Module{ } } public boolean checkStuff() { - if(EnchantmentHelper.getEnchantmentLevel(Enchantments.SHARPNESS, mc.player.inventory.getCurrentItem()) == Short.valueOf((short)5)) { + if (EnchantmentHelper.getEnchantmentLevel(Enchantments.SHARPNESS, mc.player.inventory.getCurrentItem()) == Short.valueOf((short)5)) { return true; } else { return false; diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/misc/FormatChat.java b/src/main/java/me/zeroeightsix/kami/module/modules/misc/FormatChat.java index ea23460a..d423a0fc 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/misc/FormatChat.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/misc/FormatChat.java @@ -32,7 +32,7 @@ public class FormatChat extends Module { public Listener sendListener = new Listener<>(event -> { if (event.getPacket() instanceof CPacketChatMessage) { String message = ((CPacketChatMessage) event.getPacket()).message; - if(message.contains("&") || message.contains("#n")){ + if (message.contains("&") || message.contains("#n")) { message = message.replaceAll("&", KamiMod.colour + ""); message = message.replaceAll("#n", "\n"); diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/render/Nametags.java b/src/main/java/me/zeroeightsix/kami/module/modules/render/Nametags.java index 63856473..c6d15bcc 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/render/Nametags.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/render/Nametags.java @@ -119,7 +119,7 @@ public class Nametags extends Module { GlStateManager.enableTexture2D(); GlStateManager.glNormal3f(0.0F, 1.0F, 0.0F); - if(!entityIn.isSneaking()) fontRendererIn.drawString(str, -i, 10, entityIn instanceof EntityPlayer ? Friends.isFriend(entityIn.getName()) ? 0x00bfff : 0xffffff : 0xffffff); + if (!entityIn.isSneaking()) fontRendererIn.drawString(str, -i, 10, entityIn instanceof EntityPlayer ? Friends.isFriend(entityIn.getName()) ? 0x00bfff : 0xffffff : 0xffffff); else fontRendererIn.drawString(str, -i, 10, 0xffaa00); if (entityIn instanceof EntityPlayer && armor.getValue()) renderArmor((EntityPlayer)entityIn, 0, -(fontRendererIn.FONT_HEIGHT + 1) - 20); GlStateManager.glNormal3f(0.0F, 0.0F, 0.0F);