mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-20 20:12:16 +00:00
- NodeManipulator: Multiblock fixxes
- NodeManipulationResults: init - moved node-related stuff to node package
This commit is contained in:
1 parent
0d59f9b90a
commit
3241ac6b5c
17 files changed
+213
-36
No files matched your search
@@ -84,6 +84,11 @@ public class BlockNodeManipulator extends BlockStoneDevice {
|
||||
@Override
|
||||
public void onNeighborBlockChange(World world, int x, int y, int z, Block par5) {
|
||||
if(world.getBlock(x, y + 1, z) != Blocks.air) {
|
||||
TileEntity te = world.getTileEntity(x, y, z);
|
||||
if(te != null && te instanceof TileNodeManipulator) {
|
||||
if(((TileNodeManipulator) te).isInMultiblock())
|
||||
((TileNodeManipulator) te).breakMultiblock();
|
||||
}
|
||||
dropBlockAsItem(world, x, y, z, 5, 0);
|
||||
world.setBlockToAir(x, y, z);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user