mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-18 19:39:06 +00:00
Keep as int
This commit is contained in:
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()) {
|
||||
|
||||
Reference in new issue
Block a user