From d8412cfd118aa5f5a317998886818fcbdd7900b4 Mon Sep 17 00:00:00 2001 From: gamma-delta <29877714+gamma-delta@users.noreply.github.com> Date: Mon, 27 Jun 2022 10:20:05 -0500 Subject: [PATCH] version bump and make hermes on a pattern not inc depth --- .../petrak/hexcasting/common/casting/operators/eval/OpEval.kt | 4 +++- gradle.properties | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Common/src/main/java/at/petrak/hexcasting/common/casting/operators/eval/OpEval.kt b/Common/src/main/java/at/petrak/hexcasting/common/casting/operators/eval/OpEval.kt index 2bde8183..eda90ee3 100644 --- a/Common/src/main/java/at/petrak/hexcasting/common/casting/operators/eval/OpEval.kt +++ b/Common/src/main/java/at/petrak/hexcasting/common/casting/operators/eval/OpEval.kt @@ -16,7 +16,9 @@ object OpEval : Operator { val datum = stack.removeLast() val instrs = evaluatable(datum, 0) - ctx.incDepth() + instrs.ifRight { + ctx.incDepth() + } // if not installed already... // also, never make a break boundary when evaluating just one pattern diff --git a/gradle.properties b/gradle.properties index 278c31c2..f3e6824d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ modName=Hex Casting minecraftVersion=1.18.2 kotlinVersion=1.6.21 -modVersion=0.9.0 +modVersion=0.9.1 paucalVersion=0.4.6 patchouliVersion=69