Fix issue with ghost item

This commit is contained in:
Felix Cravic 2020-07-02 17:58:18 +02:00
parent d35bb8f434
commit 401fa67243
2 changed files with 3 additions and 2 deletions

View File

@ -51,7 +51,7 @@ public class PlayerSkin {
try {
final String response = URLUtils.getText(url);
JsonObject jsonObject = (new JsonParser()).parse(response).getAsJsonObject();
JsonObject jsonObject = JsonParser.parseString(response).getAsJsonObject();
JsonArray propertiesArray = jsonObject.get("properties").getAsJsonArray();
Iterator<JsonElement> iterator = propertiesArray.iterator();

View File

@ -277,7 +277,8 @@ public class PlayerInventory implements InventoryModifier, InventoryClickHandler
}
// Refresh slot
refreshSlot(slot); // Use #update() if any problem occurs
update();
//refreshSlot(slot); problem with ghost item when clicking on a slot which has a different internal id
}
/**