mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-03-14 11:43:48 +01:00
Check for display tag when translating anvil contents (#1073)
This commit is contained in:
parent
7fc14d8956
commit
07f3d45cc4
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ public class AnvilInventoryTranslator extends BlockInventoryTranslator {
|
|||
if (itemName != null) {
|
||||
String rename;
|
||||
NbtMap tag = itemName.getTag();
|
||||
if (tag != null) {
|
||||
if (tag != null && tag.containsKey("display")) {
|
||||
String name = tag.getCompound("display").getString("Name");
|
||||
try {
|
||||
Component component = GsonComponentSerializer.gson().deserialize(name);
|
||||
|
|
Loading…
Add table
Reference in a new issue