Fixed small issue with get tile meta

This commit is contained in:
modmuss50 2015-09-19 09:27:13 +01:00
parent 5d5f4ec929
commit aacc73102d

View file

@ -156,6 +156,6 @@ public class BlockMachineBase extends BlockContainer {
}
public int getTileMeta(IBlockAccess blockAccess, int x, int y, int z){
return blockAccess.getTileEntity(x, y, z) != null ? getTileMeta(blockAccess.getTileEntity(x, y,z).getWorldObj(), x, y, z) : null;
return blockAccess.getTileEntity(x, y, z) != null ? getTileMeta(blockAccess.getTileEntity(x, y,z).getWorldObj(), x, y, z) : 0;
}
}