mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-23 21:49:58 +00:00
#1818 Dimensional Transceiver dupe, fix machines dropping in creative
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user