diff --git a/src/main/java/thaumicenergistics/common/integration/tc/EssentiaTileContainerHelper.java b/src/main/java/thaumicenergistics/common/integration/tc/EssentiaTileContainerHelper.java index 012de95c..d70565ea 100644 --- a/src/main/java/thaumicenergistics/common/integration/tc/EssentiaTileContainerHelper.java +++ b/src/main/java/thaumicenergistics/common/integration/tc/EssentiaTileContainerHelper.java @@ -118,7 +118,8 @@ public long extractFromContainer(final IAspectContainer container, int amountToD // Are we really draining, or just simulating? if (mode == Actionable.MODULATE) { - container.takeFromContainer(aspectToDrain, amountToDrain); + if (!container.takeFromContainer(aspectToDrain, amountToDrain)) + return 0; } // Return how much was drained