mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-20 03:59:56 +00:00
- pillar fix2
This commit is contained in:
1 parent
136bb8ccd5
commit
9fa70d3a98
1 file changed
+2
-2
@@ -100,12 +100,12 @@ public class BlockStoneMachine extends Block {
|
||||
public void onNeighborBlockChange(World world, int x, int y, int z, Block block) {
|
||||
int metadata = world.getBlockMetadata(x, y, z);
|
||||
if(metadata == 15) {
|
||||
if(world.getBlock(x, y + 1, z) != this || world.getBlockMetadata(x, y, z) != 11) {
|
||||
if(world.getBlock(x, y + 1, z) != this || world.getBlockMetadata(x, y + 1, z) != 11) {
|
||||
dropBlockAsItem(world, x, y, z, metadata, 0);
|
||||
world.setBlockToAir(x, y, z);
|
||||
}
|
||||
} else if(metadata == 11) {
|
||||
if(world.getBlock(x, y - 1, z) != this || world.getBlockMetadata(x, y, z) != 15) {
|
||||
if(world.getBlock(x, y - 1, z) != this || world.getBlockMetadata(x, y - 1, z) != 15) {
|
||||
dropBlockAsItem(world, x, y, z, metadata, 0);
|
||||
world.setBlockToAir(x, y, z);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user