#1818 Dimensional Transceiver dupe, fix machines dropping in creative

This commit is contained in:
tterrag1098 committed 2015-02-01 20:04:07 -05:00
1 parent 45264f0527
commit 85679e91c5
2 files changed
+3 -3

No files matched your search

@@ -224,9 +224,9 @@ public abstract class AbstractMachineBlock<T extends AbstractMachineEntity> exte
TileEntity te = world.getTileEntity(x, y, z);
if(te instanceof AbstractMachineEntity && shouldDropDefaultItem(world, player, x, y, z)) {
dropAsItem(world, x, y, z, (AbstractMachineEntity) te);
world.removeTileEntity(x, y, z);
}
}
world.removeTileEntity(x, y, z);
return super.removedByPlayer(world, player, x, y, z, doHarvest);
}
@@ -49,14 +49,14 @@ public class BlockTransceiver extends AbstractMachineBlock<TileTransceiver> {
}
@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) {
TileEntity te = world.getTileEntity(x, y, z);
if(te instanceof TileTransceiver) {
((TileTransceiver)te).getRailController().dropNonSpawnedCarts();
}
}
return super.removedByPlayer(world, player, x, y, z);
return super.removedByPlayer(world, player, x, y, z, doHarvest);
}
@Override