From 1c5e1804479c86a3412e7d4eafd4414d99763b23 Mon Sep 17 00:00:00 2001 From: Alejandro <25-alejandro@users.noreply.git.krews.org> Date: Sun, 23 Feb 2020 00:39:07 +0200 Subject: [PATCH] Ensure monsterplants don't get rarity 0 --- .../items/interactions/pets/InteractionMonsterPlantSeed.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/pets/InteractionMonsterPlantSeed.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/pets/InteractionMonsterPlantSeed.java index 96e79004..8bbe249c 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/pets/InteractionMonsterPlantSeed.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/pets/InteractionMonsterPlantSeed.java @@ -33,7 +33,7 @@ public class InteractionMonsterPlantSeed extends HabboItem { public static int randomRarityLevel() { int number = Emulator.getRandom().nextInt(66); int count = 0; - for (int i = 1; i <= 11; i++) { + for (int i = 1; i < 11; i++) { count += 11 - i; if (number <= count) { return i;