3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 16:12:46 +01:00

Don't process the display tag if it's empty

Dieser Commit ist enthalten in:
DoctorMacc 2020-07-07 08:30:11 -04:00
Ursprung 50176e10a8
Commit f9760b721c

Datei anzeigen

@ -157,7 +157,7 @@ public abstract class ItemTranslator {
NbtMap tag = itemData.getTag(); NbtMap tag = itemData.getTag();
if (tag != null) { if (tag != null) {
NbtMap display = tag.getCompound("display"); NbtMap display = tag.getCompound("display");
if (display != null) { if (display != null && !display.isEmpty()) {
String name = display.getString("Name"); String name = display.getString("Name");
// If its not a message convert it // If its not a message convert it