forked from RepoMirrors/kami-blue
fix bad code formatting
This commit is contained in:
parent
b731fdf2d2
commit
97425d38de
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue