Browse Source

Always emulate lure bonus to avoid vanilla bugs
Fixes #4359

nossr50 4 years ago
parent
commit
1c9592aba3

+ 1 - 0
Changelog.txt

@@ -2,6 +2,7 @@ Version 2.1.169
     Fixed a few memory leaks involving arrows
     Fixed mcMMO inappropriately assigning metadata to projectiles not fired from players
     Fix mctop not working if locale was set to something other than en_US
+    mcMMO will now always emulate lure in order to stack it correctly and avoid vanilla bugs
 
 Version 2.1.168
     Fixed an IndexOutOfBoundsException error when trying to access UserBlockTracker from an invalid range (thanks t00thpick1)

+ 1 - 1
src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java

@@ -265,7 +265,7 @@ public class FishingManager extends SkillManager {
             int convertedLureBonus = 0;
 
             //This avoids a Minecraft bug where lure levels above 3 break fishing
-            if(lureLevel > 3) {
+            if(lureLevel > 0) {
                 masterAnglerCompatibilityLayer.setApplyLure(fishHook, false);
                 convertedLureBonus = lureLevel * 100;
             }