Fixed unsafe operation in ServerInterface.

This commit is contained in:
sk89q 2010-11-06 14:46:00 -07:00
parent 93ac198d80
commit 491f63b196

View File

@ -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<BaseItem>(new BaseItem((short)item.getItemId()),
item.getAmount()));
}
}