Skip to content

Commit f5d31eb

Browse files
authored
Fix malilib comment appender (#118)
* Attach to all return callbacks to adapt to Malilib changes * Only hook if translationPrefix is empty --------- Signed-off-by: Hendrix-Shen <[email protected]>
1 parent 4fe30f5 commit f5d31eb

File tree

1 file changed

+5
-0
lines changed
  • magiclib-malilib-extra/src/main/java/top/hendrixshen/magiclib/mixin/malilib/config

1 file changed

+5
-0
lines changed

magiclib-malilib-extra/src/main/java/top/hendrixshen/magiclib/mixin/malilib/config/ConfigBaseMixin.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ public class ConfigBaseMixin {
6363
@Inject(
6464
method = "getComment",
6565
at = @At(
66+
//#if MC > 12101
67+
//$$ value = "RETURN",
68+
//$$ ordinal = 1
69+
//#else
6670
value = "TAIL"
71+
//#endif
6772
),
6873
cancellable = true
6974
)

0 commit comments

Comments
 (0)