1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-07-03 22:24:43 +02:00

fix trickshot not applying shot from crossbow to bounced arrows

This commit is contained in:
nossr50
2024-03-31 08:46:04 -07:00
parent cf49fc7599
commit b56ddebde8
2 changed files with 2 additions and 0 deletions
Changelog.txt
src/main/java/com/gmail/nossr50/skills/crossbows

@ -72,6 +72,7 @@ public class CrossbowsManager extends SkillManager {
new FixedMetadataValue(pluginRef, bounceCount + 1));
spawnedArrow.setMetadata(MetadataConstants.METADATA_KEY_SPAWNED_ARROW,
new FixedMetadataValue(pluginRef, originalArrowShooter));
spawnedArrow.setShotFromCrossbow(true);
// Don't allow multi-shot or infinite arrows to be picked up
if (spawnedArrow.hasMetadata(MetadataConstants.METADATA_KEY_MULTI_SHOT_ARROW)