From f2f47139f29e67841dbbdb78a2977ccfe440ebe0 Mon Sep 17 00:00:00 2001 From: ishland Date: Fri, 22 Nov 2024 23:33:47 +0800 Subject: [PATCH] fix: avoid messing with hashcodes --- .../java/com/ishland/c2me/opts/dfc/common/gen/BytecodeGen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c2me-opts-dfc/src/main/java/com/ishland/c2me/opts/dfc/common/gen/BytecodeGen.java b/c2me-opts-dfc/src/main/java/com/ishland/c2me/opts/dfc/common/gen/BytecodeGen.java index 0f62dc9b..deb3962b 100644 --- a/c2me-opts-dfc/src/main/java/com/ishland/c2me/opts/dfc/common/gen/BytecodeGen.java +++ b/c2me-opts-dfc/src/main/java/com/ishland/c2me/opts/dfc/common/gen/BytecodeGen.java @@ -79,7 +79,7 @@ public static DensityFunction compile(DensityFunction densityFunction, Reference AstNode ast = vif.getAstNode(); return new CompiledDensityFunction(compile0(ast), vif.getBlendingFallback()); } - AstNode ast = McToAst.toAst(densityFunction.apply(StripBlending.INSTANCE)); + AstNode ast = McToAst.toAst(densityFunction); if (ast instanceof ConstantNode constantNode) { return DensityFunctionTypes.constant(constantNode.getValue()); }