From 8195fd5c810aeb1974ff6a986bff5ff8ec183612 Mon Sep 17 00:00:00 2001 From: SamsTheNerd Date: Mon, 28 Oct 2024 15:46:08 -0400 Subject: [PATCH] make unbound circles cast as enlightened --- .../hexcasting/api/casting/eval/env/CircleCastEnv.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Common/src/main/java/at/petrak/hexcasting/api/casting/eval/env/CircleCastEnv.java b/Common/src/main/java/at/petrak/hexcasting/api/casting/eval/env/CircleCastEnv.java index 94771a57c5..7a9bac13cc 100644 --- a/Common/src/main/java/at/petrak/hexcasting/api/casting/eval/env/CircleCastEnv.java +++ b/Common/src/main/java/at/petrak/hexcasting/api/casting/eval/env/CircleCastEnv.java @@ -148,6 +148,13 @@ public boolean isVecInRangeEnvironment(Vec3 vec) { return this.execState.bounds.contains(vec); } + @Override + public boolean isEnlightened() { + // have unbound circles be enlightened. + if(getCastingEntity() == null) return true; + return super.isEnlightened(); + } + @Override public boolean hasEditPermissionsAtEnvironment(BlockPos pos) { return true;