PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
10.04k stars 2.34k forks source link

EntityShootBowEvent not cancelling crossbow shooting properly #4891

Open MCD4U opened 3 years ago

MCD4U commented 3 years ago

What behaviour is expected:

What you expected to see A charged/loaded crossbow should remain charged/loaded with the arrow after a player rightclicks/attempts to shoot with it.

What behaviour is observed:

What you actually saw The charged crossbow becomes uncharged (not loaded with an arrow).

Steps/models to reproduce:

This may include a build schematic, a video, or detailed instructions to help reconstruct the issue Cancel the EntityShootBowEvent (calling event.setConsumeItem(false) has no effect), and try to shoot with a loaded crossbow.

Plugin list:

A list of your plugins

Paper version:

Paste the output of running /version on your server WITH the Minecraft version. latest is not a version; we require the output of /version so we can properly track down the issue.

[20:19:14 INFO]: This server is running Paper version git-Paper-325 (MC: 1.16.4) (Implementing API version 1.16.4-R0.1-SNAPSHOT)
[20:19:14 INFO]: Previous version: git-Paper-174 (MC: 1.16.2)

Anything else:

Anything else you think may help us resolve the problem

Camerooooon commented 3 years ago

Hello, I'm a new contributor to Paper Spigot. Can I try to work on fixing this issue?

Machine-Maker commented 3 years ago

The project is open source for a reason. Go ahead.

Oh BTW, I did confirm this issue exists. The event was cancelled insofar as the bolt did not fire, but the crossbow was discharged even when the event was cancelled.

bilemedimkq commented 5 months ago

any update ?