-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: None
When using PlayerBucketEmptyEvent's getBlockClicked() method, it appears to consistently return a value that's off-by-one. e.g. placing a block at x=0,y=64,z=-0 (thereby clicking x=0,y=63,z=-0) returns the block that was placed rather than the block clicked.
Basically, the equivalent of event.getBlockClicked().getRelative(event.getBlockFace()).
This behavior differs from the previous norm and doesn't match the described API. (Though the addition of a separate getBlock() method that does implement this behavior would be a desirable addition.)
Tested on the current latest version: git-Spigot-b39373b-73eff0d (MC: 1.9)
Code used:
@EventHandler public void onPlayerBucketEmpty(PlayerBucketEmptyEvent event) { getLogger().info("Clicked: " + event.getBlockClicked()); }