Skip to content

Commit

Permalink
use ModifyExpressionValue instead of constant
Browse files Browse the repository at this point in the history
  • Loading branch information
rfresh2 committed Dec 9, 2024
1 parent 8abe925 commit 73b5bc7
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
package xaeroplus.mixin.client;

import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.Constant;
import org.spongepowered.asm.mixin.injection.ModifyConstant;
import org.spongepowered.asm.mixin.injection.At;
import xaero.common.gui.GuiAddWaypoint;
import xaeroplus.settings.Settings;

@Mixin(value = GuiAddWaypoint.class, remap = false)
public class MixinGuiAddWaypoint {
@ModifyConstant(
@ModifyExpressionValue(
method = "checkFields",
constant = @Constant(
intValue = 2
at = @At(
value = "CONSTANT",
args = "intValue=2"
)
)
public int allowLongerInitials(int original) {
Expand Down

0 comments on commit 73b5bc7

Please sign in to comment.