Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-03 01:50:07 +01:00
[Forge] Fix clearing inventories
1.11 no longer uses null in inventories.
Dieser Commit ist enthalten in:
Ursprung
6ad11624bb
Commit
e9419f4280
@ -188,7 +188,7 @@ public class ForgeWorld extends AbstractWorld {
|
|||||||
IInventory inv = (IInventory) tile;
|
IInventory inv = (IInventory) tile;
|
||||||
int size = inv.getSizeInventory();
|
int size = inv.getSizeInventory();
|
||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < size; i++) {
|
||||||
inv.setInventorySlotContents(i, null);
|
inv.setInventorySlotContents(i, ItemStack.EMPTY);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren