mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-21 12:32:09 +00:00
- Book of Knowledge - ugh..
This commit is contained in:
1 parent
7f40306d8b
commit
6e02124c07
3 files changed
+13
-3
No files matched your search
@@ -35,7 +35,11 @@ public class ItemBlockKnowledgeBook extends ItemBlock {
|
||||
Block placedAgainst = world.getBlock(x, y, z);
|
||||
int againstMeta = world.getBlockMetadata(x, y, z);
|
||||
if(placedAgainstDir.equals(ForgeDirection.UP) && placedAgainst.equals(ConfigBlocks.blockStoneDevice) && againstMeta == 1) {
|
||||
return super.onItemUse(stack, player, world, x, y, z, side, hitX, hitY, hitZ);
|
||||
if(world.isAirBlock(x, y + 2, z)) {
|
||||
return super.onItemUse(stack, player, world, x, y, z, side, hitX, hitY, hitZ);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user