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