#1456 Allow wireless charger to be disabled with redstone

This commit is contained in:
tterrag1098 committed 2014-12-26 21:39:52 -05:00
1 parent 5dd479f5e6
commit 96beafa468
7 files changed
+30 -8

No files matched your search

@@ -231,7 +231,7 @@ public abstract class AbstractMachineBlock<T extends AbstractMachineEntity> exte
}
@Override
public boolean removedByPlayer(World world, EntityPlayer player, int x, int y, int z) {
public boolean removedByPlayer(World world, EntityPlayer player, int x, int y, int z, boolean doHarvest) {
if(!world.isRemote && (!player.capabilities.isCreativeMode)) {
TileEntity te = world.getTileEntity(x, y, z);
if(te instanceof AbstractMachineEntity) {
@@ -250,7 +250,7 @@ public abstract class AbstractMachineBlock<T extends AbstractMachineEntity> exte
world.spawnEntityInWorld(entityitem);
}
}
return super.removedByPlayer(world, player, x, y, z);
return super.removedByPlayer(world, player, x, y, z, doHarvest);
}
@Override