From 6bc57b2b97b51ba75a129e8b3e8c135e9b004256 Mon Sep 17 00:00:00 2001 From: BrainFart17 Date: Sun, 5 Apr 2026 18:16:49 -0700 Subject: [PATCH] Fix minor typo in magic number --- Minecraft.World/FishingHelper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Minecraft.World/FishingHelper.cpp b/Minecraft.World/FishingHelper.cpp index 1d2015c5..cd6b7227 100644 --- a/Minecraft.World/FishingHelper.cpp +++ b/Minecraft.World/FishingHelper.cpp @@ -94,7 +94,6 @@ CatchWeighedItem* FishingHelper::getRandCatch(CatchType catchType) std::shared_ptr FishingHelper::handleCatch(CatchWeighedItem* weighedCatch, CatchType catchType) { - std::shared_ptr itemInstance = std::make_shared( weighedCatch->getItemId(), weighedCatch->getCount(), weighedCatch->getAuxValue() ); @@ -107,7 +106,7 @@ std::shared_ptr FishingHelper::handleCatch(CatchWeighedItem* weigh itemInstance = EnchantmentHelper::enchantItem(random, itemInstance, random->nextInt(9) + 22); // 22 to 30 enchantment level } else if (itemInstance->id == Item::bow_Id) { - itemInstance->setAuxValue((int) (itemInstance->getMaxDamage() * ((double) random->nextInt(250) + 750.0) / 1000.0)); // 75% to 100% damage + itemInstance->setAuxValue((int) (itemInstance->getMaxDamage() * ((double) random->nextInt(251) + 750.0) / 1000.0)); // 75% to 100% damage itemInstance = EnchantmentHelper::enchantItem(random, itemInstance, random->nextInt(9) + 22); // 22 to 30 enchantment level } else if (itemInstance->id == Item::book_Id) {