machines are now connected to the controller
This commit is contained in:
@@ -14,4 +14,11 @@ public class BlockController extends BlockSC implements ITileEntityProvider {
|
||||
public TileEntity createNewTileEntity(World world, int meta) {
|
||||
return new TileController();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBlockPreDestroy(World world, int x, int y, int z, int meta) {
|
||||
((TileController) world.getTileEntity(x, y, z)).onDestroyed();
|
||||
|
||||
super.onBlockPreDestroy(world, x, y, z, meta);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user