Modmuss50 2018-08-27 18:23:16 +01:00
parent f44aa92093
commit c1be3fb765
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82

View file

@ -52,11 +52,11 @@ import reborncore.common.blocks.BlockWrenchEventHandler;
import reborncore.common.items.WrenchHelper;
import reborncore.common.registration.RebornRegistry;
import reborncore.common.registration.impl.ConfigRegistry;
import techreborn.utils.TechRebornCreativeTab;
import techreborn.init.ModBlocks;
import techreborn.init.ModSounds;
import techreborn.lib.ModInfo;
import techreborn.tiles.cable.TileCable;
import techreborn.utils.TechRebornCreativeTab;
import techreborn.utils.damageSources.ElectrialShockSource;
import javax.annotation.Nullable;
@ -228,7 +228,7 @@ public class BlockCable extends BlockContainer {
@Override
public IBlockState getStateForPlacement(World world, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer, EnumHand hand) {
return getStateFromMeta(placer.getHeldItem(hand).getItemDamage());
return getStateFromMeta(meta);
}
@Override