Fix LESU, closes #999 closes #938 closes #761

This commit is contained in:
modmuss50 2017-06-02 20:10:00 +01:00
parent 2c16bf58b7
commit 4e47e2102e
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82

View file

@ -24,11 +24,13 @@
package techreborn.tiles.lesu;
import net.minecraft.block.Block;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import reborncore.api.power.EnumPowerTier;
import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.util.Inventory;
import techreborn.blocks.storage.BlockLESU;
import techreborn.config.ConfigTechReborn;
import java.util.ArrayList;
@ -133,4 +135,13 @@ public class TileLesu extends TilePowerAcceptor {// TODO wrench
public EnumPowerTier getBaseTier() {
return EnumPowerTier.EXTREME;
}
@Override
public EnumFacing getFacingEnum() {
Block block = world.getBlockState(pos).getBlock();
if (block instanceof BlockLESU) {
return ((BlockLESU) block).getFacing(world.getBlockState(pos));
}
return null;
}
}