From 3e0f163fac1b1dcd055f0edc6ebf01b9bb1ee9de Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 20 Feb 2017 13:24:57 +0100 Subject: [PATCH] no bad --- .../actuallyadditions/mod/misc/apiimpl/MethodHandler.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/misc/apiimpl/MethodHandler.java b/src/main/java/de/ellpeck/actuallyadditions/mod/misc/apiimpl/MethodHandler.java index 401ea0eed..c48c746d0 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/misc/apiimpl/MethodHandler.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/misc/apiimpl/MethodHandler.java @@ -30,7 +30,6 @@ import de.ellpeck.actuallyadditions.mod.items.lens.LensRecipeHandler; import de.ellpeck.actuallyadditions.mod.recipe.CrusherRecipeRegistry; import de.ellpeck.actuallyadditions.mod.tile.TileEntityAtomicReconstructor; import de.ellpeck.actuallyadditions.mod.util.StackUtil; -import de.ellpeck.actuallyadditions.mod.util.WorldUtil; import net.minecraft.block.Block; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.item.EntityItem; @@ -234,8 +233,7 @@ public class MethodHandler implements IMethodHandler{ @Override public boolean invokeReconstructor(IAtomicReconstructor tile){ if(tile.getEnergy() >= TileEntityAtomicReconstructor.ENERGY_USE){ - IBlockState state = tile.getWorldObject().getBlockState(tile.getPosition()); - EnumFacing sideToManipulate = WorldUtil.getDirectionByPistonRotation(state.getBlock().getMetaFromState(state)); + EnumFacing sideToManipulate = tile.getOrientation(); Lens currentLens = tile.getLens(); if(currentLens.canInvoke(tile, sideToManipulate, TileEntityAtomicReconstructor.ENERGY_USE)){ tile.extractEnergy(TileEntityAtomicReconstructor.ENERGY_USE);