Browse Source

Arrow dupe fix

nossr50 4 years ago
parent
commit
ade6fb2c1d
2 changed files with 2 additions and 1 deletions
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/listeners/EntityListener.java

+ 1 - 0
Changelog.txt

@@ -1,4 +1,5 @@
 Version 2.1.171
 Version 2.1.171
+    Fixed a bug where arrows shot by infinite bow enchant would duplicate
     Axes can now replant cocoa plants (thanks Lyther)
     Axes can now replant cocoa plants (thanks Lyther)
     Players who level up at certain milestones have their level ups broadcast to the server (very configurable and optional, see notes)
     Players who level up at certain milestones have their level ups broadcast to the server (very configurable and optional, see notes)
     Added Level_Up_Chat_Broadcasts settings to config.yml under General
     Added Level_Up_Chat_Broadcasts settings to config.yml under General

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

@@ -141,7 +141,7 @@ public class EntityListener implements Listener {
             projectile.setMetadata(mcMMO.bowForceKey, new FixedMetadataValue(pluginRef, Math.min(event.getForce() * AdvancedConfig.getInstance().getForceMultiplier(), 1.0)));
             projectile.setMetadata(mcMMO.bowForceKey, new FixedMetadataValue(pluginRef, Math.min(event.getForce() * AdvancedConfig.getInstance().getForceMultiplier(), 1.0)));
             projectile.setMetadata(mcMMO.arrowDistanceKey, new FixedMetadataValue(pluginRef, projectile.getLocation()));
             projectile.setMetadata(mcMMO.arrowDistanceKey, new FixedMetadataValue(pluginRef, projectile.getLocation()));
             //Cleanup metadata in 1 minute in case normal collection falls through
             //Cleanup metadata in 1 minute in case normal collection falls through
-            CombatUtils.cleanupArrowMetadata((Projectile) projectile);
+            CombatUtils.delayArrowMetaCleanup((Projectile) projectile);
         }
         }
     }
     }