From 491f63b19600b251104257225c7a510adbd202a2 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 6 Nov 2010 14:46:00 -0700 Subject: [PATCH] Fixed unsafe operation in ServerInterface. --- src/ServerInterface.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ServerInterface.java b/src/ServerInterface.java index 2aafadea5..b28210133 100644 --- a/src/ServerInterface.java +++ b/src/ServerInterface.java @@ -135,7 +135,8 @@ public class ServerInterface { for (byte i = 0; i <= 26; i++) { Item item = chest.getItemFromSlot(i); if (item != null) { - items.put(i, new Countable(new BaseItem((short)item.getItemId()), item.getAmount())); + items.put(i, new Countable(new BaseItem((short)item.getItemId()), + item.getAmount())); } }