-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: None
The current description of method PlayerInteractEvent.getClickedBlock() in the javadocs on website https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/player/PlayerInteractEvent.html#getClickedBlock() is misleading.
The description currently states:
Returns the clicked block
Returns: Block returns the block clicked with this item.
When in fact the function returns a block player has interacted with even if getAction() = Action.PHYSICAL and the block has been interacted with by ass-pressure. I'm happy that it does that, however I would appreciate if the description was more precise in terms of what the method returns since the method name itself is misleading already and changing the name would cause more harm then good.