This commit is contained in:
abel1502 2025-05-22 18:43:13 +03:00
parent dc66e5ac04
commit 3a6f890774
No known key found for this signature in database
GPG Key ID: 076926596A536338

View File

@ -127,7 +127,12 @@ public class TileEntityCraneExtractor extends TileEntityCraneBase implements IGU
worldObj.spawnEntityInWorld(moving);
if (b instanceof IEnterableBlock) {
((IEnterableBlock)b).onItemEnter(worldObj, xCoord + outputSide.offsetX, yCoord + outputSide.offsetY, zCoord + outputSide.offsetZ, outputSide, moving);
IEnterableBlock enterable = (IEnterableBlock) b;
if(enterable.canItemEnter(worldObj, xCoord + outputSide.offsetX, yCoord + outputSide.offsetY, zCoord + outputSide.offsetZ, outputSide, moving)) {
enterable.onItemEnter(worldObj, xCoord + outputSide.offsetX, yCoord + outputSide.offsetY, zCoord + outputSide.offsetZ, outputSide, moving);
moving.setDead();
}
}
hasSent = true;