Skip to content
Permalink
Browse files

This didnt work the first time.

  • Loading branch information...
Ri5ux Ri5ux
Ri5ux authored and Ri5ux committed Jul 15, 2019
1 parent 36573b5 commit efe5d3c71555ca7a97b25fc4435e829ab6844f07
@@ -1,5 +1,7 @@
package org.avp.block;

import java.util.Random;

import org.avp.tile.TileEntityPowerline;

import net.minecraft.block.Block;
@@ -19,6 +21,12 @@ public BlockPowerline(Material material)
super(material);
}

@Override
public void updateTick(World worldIn, BlockPos pos, IBlockState state, Random rand)
{
super.updateTick(worldIn, pos, state, rand);
}

@Override
public boolean isOpaqueCube(IBlockState state)
{
@@ -10,6 +10,7 @@
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumBlockRenderType;
@@ -64,7 +65,7 @@ public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, En

if (te != null && te instanceof TileEntityTransformer)
{
if (playerIn.getHeldItemMainhand() == ItemStack.EMPTY)
if (playerIn.getHeldItemMainhand().getItem() == Items.AIR)
{
TileEntityTransformer transformer = (TileEntityTransformer) te;

0 comments on commit efe5d3c

Please sign in to comment.
You can’t perform that action at this time.