Fixed Cable power issues
This commit is contained in:
parent
1f8a9794bc
commit
7c56cd25f6
3 changed files with 48 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue