Skip to content

Commit

Permalink
fix trickshot not applying shot from crossbow to bounced arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
nossr50 committed Mar 31, 2024
1 parent cf49fc7 commit b56ddeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.txt
@@ -1,5 +1,6 @@
Version 2.2.002
Fixed bug where thrown tridents did not grant XP or benefit from subskills
Fixed bug where trickshot marked bounced arrows as being shot from a bow instead of being shot from a crossbow

Version 2.2.001
Fixed Crossbow's Powered shot showing the text for the wrong skill from the locale when using /crossbows command
Expand Down
Expand Up @@ -72,6 +72,7 @@ private void spawnReflectedArrow(@NotNull Plugin pluginRef, @NotNull Arrow origi
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)
Expand Down

0 comments on commit b56ddeb

Please sign in to comment.