Arrow dupe fix

This commit is contained in:
nossr50 2021-01-07 13:36:54 -08:00
parent f38d92497a
commit ade6fb2c1d
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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);
}
}