Update common/buildcraft/core/utils/Utils.java

Allow Utils.addToRandomInventory() to work with hopper
This commit is contained in:
Vany Serezhkin 2012-10-13 19:11:09 +04:00
parent 1e0e23fe49
commit 30bbb8930b

View file

@ -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);
}