mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-27 15:23:22 +00:00
- Book of Knowledge <init> and finished.
This commit is contained in:
1 parent
26a1f3b07b
commit
7f40306d8b
21 files changed
+1048
-53
No files matched your search
@@ -205,6 +205,10 @@ public class BlockStoneMachine extends Block {
|
||||
dropBlockAsItem(world, x, y, z, metadata, 0);
|
||||
world.setBlockToAir(x, y, z);
|
||||
}
|
||||
} else if(metadata == 1) {
|
||||
if (!world.isAirBlock(x, y + 1, z)) {
|
||||
InventoryUtils.dropItems(world, x, y, z);
|
||||
}
|
||||
} else if(metadata == 4) {
|
||||
if(!world.isRemote) {
|
||||
TileArcanePackager tile = (TileArcanePackager) world.getTileEntity(x, y, z);
|
||||
@@ -247,7 +251,10 @@ public class BlockStoneMachine extends Block {
|
||||
return world.getBlock(x, y - 1, z).onBlockActivated(world, x, y - 1, z, player, side, hitX, hitY, hitZ);
|
||||
}
|
||||
} else if (metadata == 1) {
|
||||
return ConfigBlocks.blockStoneDevice.onBlockActivated(world, x, y, z, player, side, hitX, hitY, hitZ);
|
||||
if(world.isAirBlock(x, y + 1, z)) {
|
||||
return ConfigBlocks.blockStoneDevice.onBlockActivated(world, x, y, z, player, side, hitX, hitY, hitZ);
|
||||
}
|
||||
return true;
|
||||
} else if(metadata == 4) {
|
||||
player.openGui(Gadomancy.instance, 2, world, x, y, z);
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user