mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Fixed unsafe operation in ServerInterface.
This commit is contained in:
parent
93ac198d80
commit
491f63b196
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user