mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Arrow dupe fix
This commit is contained in:
parent
f38d92497a
commit
ade6fb2c1d
@ -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
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user