From a3575eb63a60416a42b457cf3eb32216d1b0e98a Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 2 Feb 2019 14:35:59 +0100 Subject: [PATCH] fixed the ritual working even if there's no tree --- .../naturesaura/blocks/tiles/TileEntityWoodStand.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityWoodStand.java b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityWoodStand.java index 726dc07d..d1dbf620 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityWoodStand.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityWoodStand.java @@ -149,6 +149,11 @@ public class TileEntityWoodStand extends TileEntityImpl implements ITickable { if (!Multiblocks.TREE_RITUAL.isComplete(this.world, this.ritualPos)) { return false; } + for (int i = 0; i < 2; i++) { + IBlockState state = this.world.getBlockState(this.ritualPos.up(i)); + if(!(state.getBlock() instanceof BlockLog)) + return false; + } if (this.timer < this.recipe.time / 2) { List required = new ArrayList<>(Arrays.asList(this.recipe.ingredients)); boolean fine = Multiblocks.TREE_RITUAL.forEach(this.ritualPos, 'W', (pos, matcher) -> {