Update common/buildcraft/core/utils/Utils.java
Allow Utils.addToRandomInventory() to work with hopper
This commit is contained in:
parent
1e0e23fe49
commit
30bbb8930b
1 changed files with 2 additions and 1 deletions
|
@ -32,6 +32,7 @@ import buildcraft.core.inventory.Transactor;
|
|||
import buildcraft.core.network.ISynchronizedTile;
|
||||
import buildcraft.core.network.PacketUpdate;
|
||||
import buildcraft.core.proxy.CoreProxy;
|
||||
import buildcraft.energy.TileEngine;
|
||||
|
||||
import net.minecraft.src.Block;
|
||||
import net.minecraft.src.EntityItem;
|
||||
|
@ -74,7 +75,7 @@ public class Utils {
|
|||
|
||||
TileEntity tileInventory = world.getBlockTileEntity((int) pos.x, (int) pos.y, (int) pos.z);
|
||||
ITransactor transactor = Transactor.getTransactorFor(tileInventory);
|
||||
if(transactor != null && !(tileInventory instanceof TileBuildCraft)
|
||||
if(transactor != null && !(tileInventory instanceof TileEngine)
|
||||
&& transactor.add(stack, from, false).stackSize > 0)
|
||||
possibleInventories.add(transactor);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue