Skip to content

Commit

Permalink
Made radius actually be a radious for DetectorBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
Azzyypaaras committed Jan 11, 2025
1 parent f65cc4b commit 197ac08
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

}

0 comments on commit 197ac08

Please sign in to comment.