From efb4a7b52f3b2e7a35d6c34785ca166b4d32dd11 Mon Sep 17 00:00:00 2001 From: sk89q Date: Fri, 26 Nov 2010 09:39:23 -0800 Subject: [PATCH] ServerInterface.clearChest() now clears using Chest.clearContents(). --- src/ServerInterface.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/ServerInterface.java b/src/ServerInterface.java index cc5d8eefe..a693e988c 100644 --- a/src/ServerInterface.java +++ b/src/ServerInterface.java @@ -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;