mirror of
https://github.com/Minestom/Minestom.git
synced 2025-03-28 06:25:59 +01:00
Fix issue with ghost item
This commit is contained in:
parent
d35bb8f434
commit
401fa67243
@ -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();
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user