Forráskód Böngészése

Give XP when sneaking for bushes

nossr50 4 éve
szülő
commit
d25784bf41

+ 1 - 0
Changelog.txt

@@ -2,6 +2,7 @@ Version 2.1.186
     Rupture has been reworked to solve a few outstanding issues (see notes)
     Fixed an exploit involving enchantments (thanks TheBusyBiscuit)
     Fixed a very small memory leak that would only happen in very rare situations
+    Fixed a bug where XP wasn't granted while sneaking and interacting with a berry bush
     Gore no longer applies Rupture
     Gore no longer sends a message to the Wolf owner when it triggers
     Gore no longer sends a message to players that are hit by it

+ 1 - 3
src/main/java/com/gmail/nossr50/listeners/PlayerListener.java

@@ -849,9 +849,7 @@ public class PlayerListener implements Listener {
                             }
                         }
                     } else {
-                        if(!event.getPlayer().isSneaking()) {
-                            herbalismManager.processBerryBushHarvesting(blockState);
-                        }
+                        herbalismManager.processBerryBushHarvesting(blockState);
                     }
                 }
                 break;