ClickInventoryEvent cancel bug

When i try to cancel a player interacting with item in the inventory using this code

@Listener public void onItemMove(ClickInventoryEvent event) { event.setCancelled(true); }

A weird bug occurs where it will add that item into another slot in the inventory

I’m using Sponge vanilla (it was the latest build as of last night)

Please report this on GitHub issues for SpongeVanilla (and maybe re-test for SpongeForge as if it occurs in both, it may very well be a SpongeCommon bug).

This has been fixed, update to latest build.

1 Like