diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityFarmer.java b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityFarmer.java index 1138c9f60..3178b03b8 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityFarmer.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityFarmer.java @@ -99,8 +99,7 @@ public class TileEntityFarmer extends TileEntityInventoryBase{ IBlockState state = this.world.getBlockState(this.pos); int meta = state.getBlock().getMetaFromState(state); - EnumFacing side = meta == 0 ? EnumFacing.NORTH : (meta == 1 ? EnumFacing.SOUTH : (meta == 2 ? EnumFacing.WEST : EnumFacing.EAST)); - BlockPos center = this.pos.offset(side, radiusAroundCenter+1); + BlockPos center = this.pos.offset(EnumFacing.getHorizontal(meta), radiusAroundCenter+1); BlockPos plant = center.add(this.checkX, 0, this.checkY); IBlockState plantState = this.world.getBlockState(plant); diff --git a/update/changelog.md b/update/changelog.md index 856b35640..e50bd32c5 100644 --- a/update/changelog.md +++ b/update/changelog.md @@ -2,6 +2,7 @@ * Fix an exception during loading some tileentities causing them to lose their data * Fix a crash with Energy Phantomfaces and Tesla * Improve performance of Patreon display code +* Fix the farmer rotations being wrong # 1.11-r82 * Made Filter Slots be ignored by Comparators (all filter settings that currently exist will be lost, so check your filters!)