diff --git a/gradle.properties b/gradle.properties index 8d797171..54385732 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,10 +9,10 @@ author = masa mod_file_name = minihud-fabric # Current mod version -mod_version = 0.32.54-sakura.2 +mod_version = 0.32.54-sakura.3 # Required malilib version -malilib_version = 9906b24d7c +malilib_version = ee3d1000e3 # Minecraft, Fabric Loader and API and mappings versions minecraft_version_out = 1.21 diff --git a/src/main/java/fi/dy/masa/minihud/event/RenderHandler.java b/src/main/java/fi/dy/masa/minihud/event/RenderHandler.java index 38c47dfd..1b7235e4 100644 --- a/src/main/java/fi/dy/masa/minihud/event/RenderHandler.java +++ b/src/main/java/fi/dy/masa/minihud/event/RenderHandler.java @@ -1300,6 +1300,8 @@ else if (entityType.equals(EntityType.PAINTING)) if (paintingPair.getRight() != null) { + // TODO 1.21.3+ + /* Optional title = paintingPair.getRight().title(); Optional author = paintingPair.getRight().author(); @@ -1315,6 +1317,10 @@ else if (author.isPresent()) { this.addLineI18n("minihud.info_line.entity_variant.painting.author_only", author.get().getString()); } + */ + Identifier id = paintingPair.getRight().assetId(); + //RegistryEntry entry = world.getRegistryManager().get(RegistryKeys.PAINTING_VARIANT).getEntry(paintingPair.getRight()); + this.addLineI18n("minihud.info_line.entity_variant.painting.title_only", id.getPath()); } } else if (entityType.equals(EntityType.PARROT)) @@ -1387,6 +1393,8 @@ else if (pair.getLeft() instanceof PaintingEntity painting) if (paintingVariant != null) { + // TODO 1.21.2+ + /* Optional title = paintingVariant.title(); Optional author = paintingVariant.author(); @@ -1402,6 +1410,11 @@ else if (author.isPresent()) { this.addLineI18n("minihud.info_line.entity_variant.painting.author_only", author.get().getString()); } + */ + + Identifier id = paintingVariant.assetId(); + //RegistryEntry entry = world.getRegistryManager().get(RegistryKeys.PAINTING_VARIANT).getEntry(paintingPair.getRight()); + this.addLineI18n("minihud.info_line.entity_variant.painting.title_only", id.getPath()); } } else if (pair.getLeft() instanceof ParrotEntity parrot)