Keep as int

This commit is contained in:
kuba6000 committed 2023-04-10 20:29:17 +02:00
1 parent caca6a6329
commit 0149c34d1d
1 file changed
+1 -1
@@ -100,7 +100,7 @@ public class AlleleEffectRecharge extends AlleleEffect implements IAlleleBeeAcce
if (total == 0) continue;
short amount = (short) Math.min(total + world.rand.nextInt(total), (int) did);
int amount = Math.min(total + world.rand.nextInt(total), (int) did);
if (amount <= 0) amount = 1;
for (Map.Entry<Aspect, Integer> aspect : toAdd.entrySet()) {