mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Fixed Corporea requests not updating inventories. Closes #1063
This commit is contained in:
1 parent
e60dd0cf0f
commit
b8d456cc1b
1 file changed
+5
@@ -178,6 +178,7 @@ public final class CorporeaHelper {
|
||||
|
||||
int count = itemCount;
|
||||
for(IInventory inv : inventories) {
|
||||
boolean removedAny = false;
|
||||
ICorporeaSpark invSpark = getSparkForInventory(inv);
|
||||
|
||||
if(inv instanceof ICorporeaInterceptor) {
|
||||
@@ -205,6 +206,7 @@ public final class CorporeaHelper {
|
||||
lastRequestExtractions += rem;
|
||||
if(doit && rem > 0) {
|
||||
inv.decrStackSize(i, rem);
|
||||
removedAny = true;
|
||||
if(invSpark != null)
|
||||
invSpark.onItemExtracted(stackAt);
|
||||
}
|
||||
@@ -212,6 +214,9 @@ public final class CorporeaHelper {
|
||||
count -= rem;
|
||||
}
|
||||
}
|
||||
|
||||
if(removedAny)
|
||||
inv.markDirty();
|
||||
}
|
||||
|
||||
for(ICorporeaInterceptor interceptor : interceptors.keySet())
|
||||
|
||||
Reference in new issue
Block a user