Skip to content

Commit 4f65198

Browse files
authored
Fix crash in magiclib-malilib-extra (MC 1.21.5) (#179)
Signed-off-by: Hendrix-Shen <[email protected]>
1 parent 22de4c5 commit 4f65198

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

magiclib-malilib-extra/src/main/java/top/hendrixshen/magiclib/mixin/malilib/element/WidgetDropDownListMixin.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ public class WidgetDropDownListMixin {
4949
method = "render",
5050
at = @At(
5151
value = "INVOKE",
52+
//#if MC > 12104
53+
//$$ target = "Lfi/dy/masa/malilib/render/RenderUtils;drawRect(IIIIIZ)V"
54+
//#else
5255
target = "Lfi/dy/masa/malilib/render/RenderUtils;drawRect(IIIII)V"
56+
//#endif
5357
)
5458
)
5559
private void selectorDropDownListMakeOpaque(Args args) {
@@ -70,7 +74,11 @@ private void selectorDropDownListMakeOpaque(Args args) {
7074
//$$ method = "render",
7175
//$$ at = @At(
7276
//$$ value = "INVOKE",
77+
//#if MC > 12104
78+
//$$ target = "Lfi/dy/masa/malilib/render/RenderUtils;drawRect(IIIIIZ)V"
79+
//#else
7380
//$$ target = "Lfi/dy/masa/malilib/render/RenderUtils;drawRect(IIIII)V"
81+
//#endif
7482
//$$ ),
7583
//$$ index = 4
7684
//$$ )
@@ -89,7 +97,11 @@ private void selectorDropDownListMakeOpaque(Args args) {
8997
//$$ method = "render",
9098
//$$ at = @At(
9199
//$$ value = "INVOKE",
100+
//#if MC > 12104
101+
//$$ target = "Lfi/dy/masa/malilib/render/RenderUtils;drawRect(IIIIIZ)V"
102+
//#else
92103
//$$ target = "Lfi/dy/masa/malilib/render/RenderUtils;drawRect(IIIII)V"
104+
//#endif
93105
//$$ ),
94106
//$$ index = 0
95107
//$$ )

0 commit comments

Comments
 (0)