瀏覽代碼

Arrow dupe fix

nossr50 4 年之前
父節點
當前提交
ade6fb2c1d
共有 2 個文件被更改,包括 2 次插入1 次删除
  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
+    Fixed a bug where arrows shot by infinite bow enchant would duplicate
     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)
     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.arrowDistanceKey, new FixedMetadataValue(pluginRef, projectile.getLocation()));
             //Cleanup metadata in 1 minute in case normal collection falls through
-            CombatUtils.cleanupArrowMetadata((Projectile) projectile);
+            CombatUtils.delayArrowMetaCleanup((Projectile) projectile);
         }
     }