Fix some misc. bugs

This commit is contained in:
Raoul Van den Berge
2016-03-20 08:54:30 +01:00
parent 42663a2643
commit 4368b3b4d7
2 changed files with 3 additions and 2 deletions

View File

@@ -68,7 +68,8 @@ public class BlockDetector extends BlockMachine
return getWeakPower(state, world, pos, side);
}
public boolean canProvidePower()
@Override
public boolean canProvidePower(IBlockState state)
{
return true;
}

View File

@@ -37,7 +37,7 @@ public class TileConstructor extends TileMachine implements ICompareSetting
if (took != null)
{
worldObj.setBlockState(front, ((ItemBlock) took.getItem()).getBlock().getDefaultState(), 1 | 2);
worldObj.setBlockState(front, ((ItemBlock) took.getItem()).getBlock().getStateFromMeta(took.getItemDamage()), 1 | 2);
}
}
}