File tree Expand file tree Collapse file tree
common/src/main/java/xaeroplus/mixin/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package xaeroplus .mixin .client ;
22
33import org .spongepowered .asm .mixin .Mixin ;
4- import org .spongepowered .asm .mixin .gen .Accessor ;
4+ import org .spongepowered .asm .mixin .gen .Invoker ;
55import xaero .map .gui .dropdown .rightclick .RightClickOption ;
66
77@ Mixin (value = RightClickOption .class , remap = false )
88public interface AccessorRightClickOption {
9- @ Accessor
10- String getName ();
9+ @ Invoker ( "getName" )
10+ String invokeGetName ();
1111}
Original file line number Diff line number Diff line change @@ -1008,11 +1008,11 @@ public void onAction(final Screen screen) {
10081008 });
10091009
10101010 if (Settings .REGISTRY .disableWaypointSharing .get ()) {
1011- options .removeIf (option -> ((AccessorRightClickOption ) option ).getName ().equals ("gui.xaero_right_click_map_share_location" ));
1011+ options .removeIf (option -> ((AccessorRightClickOption ) option ).invokeGetName ().equals ("gui.xaero_right_click_map_share_location" ));
10121012 }
10131013
10141014 if (Settings .REGISTRY .disableTeleportation .get ()) {
1015- options .removeIf (option -> ((AccessorRightClickOption ) option ).getName ().equals ("gui.xaero_wm_right_click_map_teleport_not_allowed" ));
1015+ options .removeIf (option -> ((AccessorRightClickOption ) option ).invokeGetName ().equals ("gui.xaero_wm_right_click_map_teleport_not_allowed" ));
10161016 }
10171017 }
10181018
Original file line number Diff line number Diff line change @@ -78,11 +78,11 @@ public void onAction(Screen screen) {
7878 }
7979
8080 if (Settings .REGISTRY .disableWaypointSharing .get ()) {
81- options .removeIf (option -> ((AccessorRightClickOption ) option ).getName ().equals ("gui.xaero_right_click_waypoint_share" ));
81+ options .removeIf (option -> ((AccessorRightClickOption ) option ).invokeGetName ().equals ("gui.xaero_right_click_waypoint_share" ));
8282 }
8383
8484 if (Settings .REGISTRY .disableTeleportation .get ()) {
85- options .removeIf (option -> ((AccessorRightClickOption ) option ).getName ().equals ("gui.xaero_right_click_waypoint_teleport" ));
85+ options .removeIf (option -> ((AccessorRightClickOption ) option ).invokeGetName ().equals ("gui.xaero_right_click_waypoint_teleport" ));
8686 }
8787 }
8888}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ org.gradle.parallel=false
33enabled_platforms =fabric,neoforge
44loom.ignoreDependencyLoomVersionValidation =true
55
6- mod_version =2.34.3
6+ mod_version =2.34.4
77
88minecraft_version =1.21.10
99
You can’t perform that action at this time.
0 commit comments