1
0
mirror of https://github.com/kami-blue/client synced 2025-01-20 14:00:41 +00:00

fix bad code formatting

This commit is contained in:
Bella 2020-02-09 11:31:18 -05:00
parent b731fdf2d2
commit 97425d38de
5 changed files with 10 additions and 10 deletions

View File

@ -46,7 +46,7 @@ public class SignBookCommand extends Command {
futureTitle = futureTitle.replaceAll("#n", "\n"); futureTitle = futureTitle.replaceAll("#n", "\n");
futureTitle = futureTitle.replaceAll("null", ""); //Random extra null added sometimes 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."); Command.sendChatMessage("Title cannot be over 31 characters.");
return; return;
} }
@ -57,8 +57,8 @@ public class SignBookCommand extends Command {
NBTTagCompound bookData = is.getTagCompound(); NBTTagCompound bookData = is.getTagCompound();
if(is.hasTagCompound()){ if (is.hasTagCompound()) {
if(bookData != null) { if (bookData != null) {
is.setTagCompound(bookData); is.setTagCompound(bookData);
} }
is.getTagCompound().setTag("title", new NBTTagString(futureTitle)); is.getTagCompound().setTag("title", new NBTTagString(futureTitle));

View File

@ -59,7 +59,7 @@ public class TabGuiUI extends AbstractComponentUI<TabGUI> {
int textY = 1; int textY = 1;
for (int i = 0; i < component.tabs.size(); i++) { for (int i = 0; i < component.tabs.size(); i++) {
String tabName = component.tabs.get(i).name; String tabName = component.tabs.get(i).name;
/*if(i == selected) /*if (i == selected)
tabName = (tabOpened ? "<" : ">") + tabName;*/ tabName = (tabOpened ? "<" : ">") + tabName;*/
GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_TEXTURE_2D);
@ -95,7 +95,7 @@ public class TabGuiUI extends AbstractComponentUI<TabGUI> {
Module feature = tab.features.get(i); Module feature = tab.features.get(i);
String fName = (feature.isEnabled() ? "\u00A7c" : "\u00A77") + feature.getName(); String fName = (feature.isEnabled() ? "\u00A7c" : "\u00A77") + feature.getName();
/*if(i == tab.selected) /*if (i == tab.selected)
fName = "\u00A7b" + fName;*/ fName = "\u00A7b" + fName;*/
GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glEnable(GL11.GL_TEXTURE_2D);

View File

@ -22,7 +22,7 @@ public class Pull32k extends Module{
enchantedSwordIndex = i; enchantedSwordIndex = i;
foundsword = true; foundsword = true;
} }
if(!foundsword) { if (!foundsword) {
enchantedSwordIndex = -1; enchantedSwordIndex = -1;
foundsword = false; foundsword = false;
} }
@ -45,7 +45,7 @@ public class Pull32k extends Module{
if (enchantedSwordIndex == -1) { if (enchantedSwordIndex == -1) {
return; return;
} }
if(enchantedSwordIndex != -1) { if (enchantedSwordIndex != -1) {
for (int i = 0; i < 9; i++) { for (int i = 0; i < 9; i++) {
ItemStack itemStack = mc.player.inventory.mainInventory.get(i); ItemStack itemStack = mc.player.inventory.mainInventory.get(i);
if (itemStack.getItem() instanceof ItemAir) { if (itemStack.getItem() instanceof ItemAir) {
@ -65,7 +65,7 @@ public class Pull32k extends Module{
} }
} }
public boolean checkStuff() { 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; return true;
} else { } else {
return false; return false;

View File

@ -32,7 +32,7 @@ public class FormatChat extends Module {
public Listener<PacketEvent.Send> sendListener = new Listener<>(event -> { public Listener<PacketEvent.Send> sendListener = new Listener<>(event -> {
if (event.getPacket() instanceof CPacketChatMessage) { if (event.getPacket() instanceof CPacketChatMessage) {
String message = ((CPacketChatMessage) event.getPacket()).message; 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("&", KamiMod.colour + "");
message = message.replaceAll("#n", "\n"); message = message.replaceAll("#n", "\n");

View File

@ -119,7 +119,7 @@ public class Nametags extends Module {
GlStateManager.enableTexture2D(); GlStateManager.enableTexture2D();
GlStateManager.glNormal3f(0.0F, 1.0F, 0.0F); 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); else fontRendererIn.drawString(str, -i, 10, 0xffaa00);
if (entityIn instanceof EntityPlayer && armor.getValue()) renderArmor((EntityPlayer)entityIn, 0, -(fontRendererIn.FONT_HEIGHT + 1) - 20); if (entityIn instanceof EntityPlayer && armor.getValue()) renderArmor((EntityPlayer)entityIn, 0, -(fontRendererIn.FONT_HEIGHT + 1) - 20);
GlStateManager.glNormal3f(0.0F, 0.0F, 0.0F); GlStateManager.glNormal3f(0.0F, 0.0F, 0.0F);