Shitshitshitshitshit --- fixed that big thing

This commit is contained in:
oitsjustjose 2015-12-13 08:12:07 -06:00
commit e9b9deac75
3 changed files with 3 additions and 6 deletions

View file

@ -13,7 +13,7 @@ buildscript{
apply plugin: 'net.minecraftforge.gradle.forge'
version = "1.3"
version = "1.3a"
group= "com.oitsjustjose.criss_cross"
archivesBaseName = "CrissCross-1.8.8"

View file

@ -33,7 +33,6 @@ public class GUIHandler implements IGuiHandler
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
TileEntity tile = world.getTileEntity(new BlockPos(x, y, z));
Item item = player.getHeldItem().getItem();
if (tile instanceof TileCropomator)
{
@ -65,7 +64,7 @@ public class GUIHandler implements IGuiHandler
return new ContainerStonegen(player, TE);
}
if (item instanceof ItemPouch)
if (player.getHeldItem() != null && player.getHeldItem().getItem() instanceof ItemPouch)
{
return new ContainerPouch(player, player.inventory.currentItem);
}
@ -77,7 +76,6 @@ public class GUIHandler implements IGuiHandler
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
TileEntity tile = world.getTileEntity(new BlockPos(x, y, z));
Item item = player.getHeldItem().getItem();
if (tile instanceof TileCropomator)
{
@ -110,7 +108,7 @@ public class GUIHandler implements IGuiHandler
return new GUIStonegen(player, TE);
}
if (item instanceof ItemPouch)
if (player.getHeldItem() != null && player.getHeldItem().getItem() instanceof ItemPouch)
{
return new GUIPouch(player, player.inventory.currentItem);
}

View file

@ -19,7 +19,6 @@ public class LibBlocks
public static Block cobblegen;
public static Block stonegen;
public static Block mobGrinder;
public static Block timer;
public static void init()
{