Event gets fired although @Exclude

Hello!

I have a plugin that listens to InteractEvents and InteractBlockEvents. The InteractEvent should only get fired when e.g. item right click in air and not on block because of a @Exclude. But it also is fired when a InteractBlockEvent occurs.
My plugin is written in Kotlin so I thought that might be the problem(annotations and things). So I excluded then listener to a Java file but the problem is still there.
The Java part which shouldn’t be fired when InteractBlockEvent
The Kotlin part which is fired correctly

Thanks!

I actually have the same problem with click events in a wip project. Appears @Exclude has no effect

2 Likes

Thanks for reporting!

Issue is closed but I haven’t tested it yet.