Fix entity container rollbacks aborting on missing items or full inventories

This commit is contained in:
Intelli committed 2026-09-23 17:42:44 -06:00
1 parent 78fbf12d9e
commit bbe5917ec5
1 file changed
+2 -2
@@ -1088,7 +1088,7 @@ public final class EntitySpawnRollbackHandler {
current.setAmount(current.getAmount() - removed);
}
}
return remaining == 0;
return true;
}
int maxStackSize = itemStack.getMaxStackSize();
@@ -1120,7 +1120,7 @@ public final class EntitySpawnRollbackHandler {
contents[index] = addedItem;
remaining -= added;
}
return remaining == 0;
return true;
}
private static void scheduleTransactionStart(Context context, Work work, Entity entity, CompletableFuture<Boolean> completion) {