fix custom name being set to an empty name on world load
@@ -32,7 +32,7 @@ public class NamedBlockEntity extends OwnableBlockEntity implements INameSetter
if (tag.contains("customName")) {
String name = tag.getString("customName");
- if (!name.equals("name"))
+ if (!name.isEmpty() && !name.equals("name"))
customName = Component.literal(name);
}
}
