From 197ac0844c0be0f41c4e8f1729e44c18ae31d6d7 Mon Sep 17 00:00:00 2001 From: azzyy Date: Fri, 10 Jan 2025 23:35:32 -0600 Subject: [PATCH] Made radius actually be a radious for DetectorBlock --- .../de/dafuqs/spectrum/blocks/redstone/DetectorBlock.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/dafuqs/spectrum/blocks/redstone/DetectorBlock.java b/src/main/java/de/dafuqs/spectrum/blocks/redstone/DetectorBlock.java index 6792487dc3..ffd2c38ef1 100644 --- a/src/main/java/de/dafuqs/spectrum/blocks/redstone/DetectorBlock.java +++ b/src/main/java/de/dafuqs/spectrum/blocks/redstone/DetectorBlock.java @@ -87,8 +87,9 @@ public void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Ran abstract int getUpdateFrequencyTicks(); - protected Box getBoxWithRadius(BlockPos blockPos, int radius) { - return Box.of(Vec3d.ofCenter(blockPos), radius, radius, radius); + protected Box getBoxWithRadius(BlockPos blockPos, float radius) { + var r = Math.round(radius * 2); + return Box.of(Vec3d.ofCenter(blockPos), r, r, r); } }