mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Don't process the display tag if it's empty
This commit is contained in:
parent
50176e10a8
commit
f9760b721c
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ public abstract class ItemTranslator {
|
|||
NbtMap tag = itemData.getTag();
|
||||
if (tag != null) {
|
||||
NbtMap display = tag.getCompound("display");
|
||||
if (display != null) {
|
||||
if (display != null && !display.isEmpty()) {
|
||||
String name = display.getString("Name");
|
||||
|
||||
// If its not a message convert it
|
||||
|
|
Loading…
Reference in a new issue