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("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));

View File

@ -59,7 +59,7 @@ public class TabGuiUI extends AbstractComponentUI<TabGUI> {
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<TabGUI> {
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);

View File

@ -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;

View File

@ -32,7 +32,7 @@ public class FormatChat extends Module {
public Listener<PacketEvent.Send> 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");

View File

@ -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);