Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Dec 6, 2024
1 parent dae363b commit 5356d01
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions src/main/java/fi/dy/masa/minihud/event/RenderHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -1300,6 +1300,8 @@ else if (entityType.equals(EntityType.PAINTING))

if (paintingPair.getRight() != null)
{
// TODO 1.21.3+
/*
Optional<Text> title = paintingPair.getRight().title();
Optional<Text> author = paintingPair.getRight().author();
Expand All @@ -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<PaintingVariant> 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))
Expand Down Expand Up @@ -1387,6 +1393,8 @@ else if (pair.getLeft() instanceof PaintingEntity painting)

if (paintingVariant != null)
{
// TODO 1.21.2+
/*
Optional<Text> title = paintingVariant.title();
Optional<Text> author = paintingVariant.author();
Expand All @@ -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<PaintingVariant> 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)
Expand Down

0 comments on commit 5356d01

Please sign in to comment.