mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Fix dupe
This commit is contained in:
parent
dc66e5ac04
commit
3a6f890774
@ -127,7 +127,12 @@ public class TileEntityCraneExtractor extends TileEntityCraneBase implements IGU
|
|||||||
worldObj.spawnEntityInWorld(moving);
|
worldObj.spawnEntityInWorld(moving);
|
||||||
|
|
||||||
if (b instanceof IEnterableBlock) {
|
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;
|
hasSent = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user