Fix #923 Alvearies get disconnected from pipes on server start

This commit is contained in:
mezz committed 2015-10-27 00:13:54 -07:00
1 parent 45f844b53b
commit d1328cff6c
5 files changed
+38 -6

No files matched your search

@@ -55,6 +55,7 @@ import forestry.core.errors.EnumErrorCode;
import forestry.core.fluids.Fluids;
import forestry.core.fluids.TankManager;
import forestry.core.fluids.tanks.FilteredTank;
import forestry.core.inventory.FakeInventoryAdapter;
import forestry.core.inventory.IInventoryAdapter;
import forestry.core.inventory.InventoryAdapter;
import forestry.core.multiblock.CoordTriplet;
@@ -152,7 +153,11 @@ public class FarmController extends RectangularMultiblockControllerBase implemen
@Override
public IInventoryAdapter getInternalInventory() {
return inventory;
if (isAssembled()) {
return inventory;
} else {
return FakeInventoryAdapter.instance();
}
}
@Override