Work on TileEntity stuff. Details below.

I've added the method "Coord4D.safeTileGet()" which is likely going to be necessary in a lot of cases where duplicate TEs could be created- for some reason World.getTileEntity() fails to return the saved TileEntity fairly often.
This commit is contained in:
aidancbrady committed 2016-05-09 18:36:40 -04:00
1 parent fc7b185805
commit eba5f7e356
20 files changed
+108 -75

No files matched your search

@@ -1085,20 +1085,6 @@ public abstract class BlockMachine extends BlockContainer implements ISpecialBou
return super.getRenderColor(state);
}
@Override
public void onBlockAdded(World world, BlockPos pos, IBlockState state)
{
TileEntity tileEntity = world.getTileEntity(pos);
if(!world.isRemote)
{
if(tileEntity instanceof TileEntityBasicBlock)
{
((TileEntityBasicBlock)tileEntity).onAdded();
}
}
}
@Override
public boolean canConnectRedstone(IBlockAccess world, BlockPos pos, EnumFacing side)