rutgerkok / Pokkit

Nukkit plugin that is able to load Bukkit plugins. Bring your Bukkit plugins to Minecraft PE!
Other
80 stars 27 forks source link

Void is returned? #77

Closed ghost closed 7 years ago

ghost commented 7 years ago

?????????????

rutgerkok commented 7 years ago

This is deliberate. If the canIgnore(...) method returns true, we ignore the rest of the code.

Why would we do that? the canIgnore(...) method returns true if there are no Bukkit plugins listening for that event. If that is the case, it would be a waste of processor time to still convert all Nukkit objects to Bukkit objects, and then fire the Bukkit event, which then falls on deaf ears.