Sponge Build: spongeforge-1.11.2-2227-6.0.0-BETA-2159
Sponge API Build: 6.0.0-20170217.091623-41
Forge Build: forge-1.11.2-13.20.0.2227-universal
Java Version: 1.8.0_121-b13
Hello, I have the following listeners that do not function at all. Unless I'm doing something wrong, I would like to know if this can be looked at. Thanks!
@Listener
public void onPlayerConsumption(UseItemStackEvent.Start event) {
event.setCancelled(true);
}
@Listener
public void onPotionThrow(LaunchProjectileEvent event) {
event.setCancelled(true);
}
are you registering the event listener? or is this in the main class? also try updating your version for sponge/forge see if it works in the newer versions
The listeners are registered and I've updated to spongeforge-1.10.2-2281-5.2.0-BETA-2401, but the issues are still present to this day. My issue was originally posted here months ago, but was told to re-post it here.
I can also confirm that neither TargetProjectileEvent nor any of its children are fired using
spongevanilla-1.12-7.0.0-BETA-290
spongeapi-7.0.0-20170703.084035-18
I can confirm that LaunchProjectile event did not fire for players, skeletons, or dispensers shooting arrows on SpongeForge Bleeding 7789e67bbd1ef2ed2411d08d23c1ea006ef7aa56
by using https://gist.github.com/ryantheleach/2152cebe0e3c90874c39e69566df4b66
Bumping up report.
still an issue with https://github.com/SpongePowered/SpongeCommon/commit/caccfa4f325396c866bb803d51ee0c3763e8d073 tested both LaunchProjectileEvent & UseItemStackEvent.Start
Partially able to reproduce on 1.12
UseItemStackEvent.Start is working fine.
LaunchProjectileEvent is broken.
@ImMorpheus
Want to work on LaunchProjectileEvent?
@Zidane Oh, I started working on LaunchProjectileEvent, but I will need some time to do it properly (modded support mostly)
PR merged
Most helpful comment
@Zidane Oh, I started working on LaunchProjectileEvent, but I will need some time to do it properly (modded support mostly)