Fixed Cable power issues

This commit is contained in:
modmuss50 2015-06-25 19:44:53 +01:00
parent 1f8a9794bc
commit 7c56cd25f6
3 changed files with 48 additions and 13 deletions

View file

@ -26,7 +26,6 @@ public class ModPartItem extends Item {
@Override
public boolean onItemUse(ItemStack item, EntityPlayer player, World world,
int x, int y, int z, int face, float x_, float y_, float z_) {
System.out.println(ModPartUtils.hasPart(world, x, y, z, modPart.getName()));
ForgeDirection dir = ForgeDirection.getOrientation(face);
if(ModPartUtils.hasPart(world, x + dir.offsetX, y + dir.offsetY, z + dir.offsetZ, modPart.getName())){
x = x + dir.offsetX;