mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2026-10-28 09:44:56 +00:00
Fix entity container rollbacks aborting on missing items or full inventories
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user