mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
ServerInterface.clearChest() now clears using Chest.clearContents().
This commit is contained in:
parent
67b46a9f27
commit
efb4a7b52f
@ -198,13 +198,7 @@ public class ServerInterface {
|
||||
}
|
||||
|
||||
Chest chest = (Chest)cblock;
|
||||
hl[] itemArray = chest.getArray();
|
||||
|
||||
// Find an existing slot to put it into
|
||||
for (int i = 0; itemArray.length > i; i++) {
|
||||
itemArray[i] = null;
|
||||
}
|
||||
|
||||
chest.clearContents();
|
||||
chest.update();
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user