Skip to content

Commit 61ec09d

Browse files
committed
Merge branch '1.21.8' into 1.21.10
2 parents ecffe7c + 9d6de00 commit 61ec09d

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package xaeroplus.mixin.client;
22

33
import org.spongepowered.asm.mixin.Mixin;
4-
import org.spongepowered.asm.mixin.gen.Accessor;
4+
import org.spongepowered.asm.mixin.gen.Invoker;
55
import xaero.map.gui.dropdown.rightclick.RightClickOption;
66

77
@Mixin(value = RightClickOption.class, remap = false)
88
public interface AccessorRightClickOption {
9-
@Accessor
10-
String getName();
9+
@Invoker("getName")
10+
String invokeGetName();
1111
}

common/src/main/java/xaeroplus/mixin/client/MixinGuiMap.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

common/src/main/java/xaeroplus/mixin/client/MixinWaypointReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ org.gradle.parallel=false
33
enabled_platforms=fabric,neoforge
44
loom.ignoreDependencyLoomVersionValidation=true
55

6-
mod_version=2.34.3
6+
mod_version=2.34.4
77

88
minecraft_version=1.21.10
99

0 commit comments

Comments
 (0)