From 34c19496db7d4960a9c40e29c780cf81e5f8bc12 Mon Sep 17 00:00:00 2001 From: "yrsegal@gmail.com" Date: Wed, 27 Apr 2022 17:55:10 -0400 Subject: [PATCH] keep old averaging behavior for circle bounds --- .../common/casting/operators/circles/OpCircleBounds.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/src/main/java/at/petrak/hexcasting/common/casting/operators/circles/OpCircleBounds.kt b/Common/src/main/java/at/petrak/hexcasting/common/casting/operators/circles/OpCircleBounds.kt index 8102fd4e..334c7702 100644 --- a/Common/src/main/java/at/petrak/hexcasting/common/casting/operators/circles/OpCircleBounds.kt +++ b/Common/src/main/java/at/petrak/hexcasting/common/casting/operators/circles/OpCircleBounds.kt @@ -18,9 +18,9 @@ class OpCircleBounds(val max: Boolean) : ConstManaOperator { return Operator.spellListOf( if (max) - Vec3(aabb.maxX - 1, aabb.maxY - 1, aabb.maxZ - 1) + Vec3(aabb.maxX - 0.5, aabb.maxY - 0.5, aabb.maxZ - 0.5) else - Vec3(aabb.minX, aabb.minY, aabb.minZ) + Vec3(aabb.minX + 0.5, aabb.minY + 0.5, aabb.minZ + 0.5) ) } }