Hello, I'm updating my mod to 1.9, can't get GUIs to open.
onBlockActivated is called but GUI doesn't show up
@Override
public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ)
{
if (worldIn.isRemote)
{
return true;
}
else
{
System.out.println("onBlockActived was called! Trying to open GUI");
playerIn.openGui(More.instance, 0, worldIn, pos.getX(), pos.getY(), pos.getZ());
return true;
}
}
Here is my GuiHandler:
Thanks in advance!