SteamWar/SpigotCore
Archiviert
13
0
Dieser Commit ist enthalten in:
Chaoscaot 2020-09-24 14:11:51 +02:00
Ursprung ee7e68eaae
Commit fddfe288dc

Datei anzeigen

@ -45,9 +45,7 @@ public class InventoryHandler implements BungeeHandler {
for (int i = 0; i < length; i++) {
JsonObject itemJson = array.get(i).getAsJsonObject();
SWItem item = SWItem.getItemFromJson(itemJson);
item.setCallback(click -> {
new InventoryCallbackPacket(itemJson, click, player).send(Bukkit.getPlayer(player));
});
item.setCallback(click -> new InventoryCallbackPacket(itemJson, click, player).send(Bukkit.getPlayer(player)));
items.put(itemJson.get("position").getAsInt(), item);
}