3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01:00

ServerInterface.clearChest() now clears using Chest.clearContents().

Dieser Commit ist enthalten in:
sk89q 2010-11-26 09:39:23 -08:00
Ursprung 67b46a9f27
Commit efb4a7b52f

Datei anzeigen

@ -198,13 +198,7 @@ public class ServerInterface {
} }
Chest chest = (Chest)cblock; Chest chest = (Chest)cblock;
hl[] itemArray = chest.getArray(); chest.clearContents();
// Find an existing slot to put it into
for (int i = 0; itemArray.length > i; i++) {
itemArray[i] = null;
}
chest.update(); chest.update();
return true; return true;