From bd1d9b27764db7e499d2efba967155299bddd5fc Mon Sep 17 00:00:00 2001 From: Su5eD Date: Wed, 24 Apr 2024 17:27:01 +0200 Subject: [PATCH] Fix ReplaceParam#offset return value --- .../patch/analysis/params/LayeredParamsDiffSnapshot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/definition/src/main/java/org/sinytra/adapter/patch/analysis/params/LayeredParamsDiffSnapshot.java b/definition/src/main/java/org/sinytra/adapter/patch/analysis/params/LayeredParamsDiffSnapshot.java index 07d2d4d..f849f58 100644 --- a/definition/src/main/java/org/sinytra/adapter/patch/analysis/params/LayeredParamsDiffSnapshot.java +++ b/definition/src/main/java/org/sinytra/adapter/patch/analysis/params/LayeredParamsDiffSnapshot.java @@ -44,7 +44,7 @@ public ParameterTransformer asParameterTransformer() { record ReplaceParam(int index, Type type) implements ParamModification { @Override public ParamModification offset(int offset) { - return new InsertParam(this.index + offset, this.type); + return new ReplaceParam(this.index + offset, this.type); } @Override