Couple more crash fixes.

This commit is contained in:
CrazyPants committed 2014-07-25 20:49:39 +08:00
1 parent 9d2aecff88
commit 7a40011669
2 files changed
+1 -7

No files matched your search

@@ -43,7 +43,7 @@ public class BlockItemElectricLight extends ItemBlockWithMetadata implements IRe
@Override
public String getUnlocalizedName(ItemStack par1ItemStack) {
int meta = par1ItemStack.getItemDamage();
meta = MathHelper.clamp_int(meta, 0, Type.values().length);
meta = MathHelper.clamp_int(meta, 0, Type.values().length - 1);
return Type.values()[meta].unlocName;
}
@@ -81,12 +81,6 @@ public abstract class GuiContainerBase extends GuiContainer implements ToolTipRe
return super.func_146978_c(p_146978_1_, p_146978_2_, p_146978_3_, p_146978_4_, p_146978_5_, p_146978_6_);
}
@Override
public void handleKeyboardInput() {
super.handleKeyboardInput();
}
public void addOverlay(IGuiOverlay overlay) {
overlays.add(overlay);
}