From 500a541edaf1987a2beb46afcb467ba06a8e2571 Mon Sep 17 00:00:00 2001 From: Treetrain1 Date: Wed, 17 Aug 2022 17:39:38 -0500 Subject: [PATCH] fix random issue --- .../wilderwild/mixin/server/SculkBlockMixin.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/frozenblock/wilderwild/mixin/server/SculkBlockMixin.java b/src/main/java/net/frozenblock/wilderwild/mixin/server/SculkBlockMixin.java index 4970d04b48..87d1df3a3e 100644 --- a/src/main/java/net/frozenblock/wilderwild/mixin/server/SculkBlockMixin.java +++ b/src/main/java/net/frozenblock/wilderwild/mixin/server/SculkBlockMixin.java @@ -22,15 +22,15 @@ import java.util.Iterator; @Mixin(SculkBlock.class) -public abstract class SculkBlockMixin { +public class SculkBlockMixin { @Shadow private static int getDecay(SculkSpreadManager spreadManager, BlockPos cursorPos, BlockPos catalystPos, int charge) { int i = spreadManager.getMaxDistance(); - float f = MathHelper.square((float) Math.sqrt(cursorPos.getSquaredDistance(catalystPos)) - (float) i); + float f = MathHelper.square((float)Math.sqrt(cursorPos.getSquaredDistance(catalystPos)) - (float)i); int j = MathHelper.square(24 - i); - float g = Math.min(1.0F, f / (float) j); - return Math.max(1, (int) ((float) charge * g * 0.5F)); + float g = Math.min(1.0F, f / (float)j); + return Math.max(1, (int)((float)charge * g * 0.5F)); } @Shadow