FallenMoonNetwork / CanaryMod

Server administration mod and API for Minecraft beta multiplayer server
http://canarymod.net
GNU Lesser General Public License v3.0
20 stars 14 forks source link

Block.rightClick(Player) throws NullPointerException when the player is null #109

Closed nosefish closed 11 years ago

nosefish commented 11 years ago

The javadoc says that the player may be null for levers, buttons, etc, which is true tor the Notchian call it uses, but not for the method as implemented, because it calls player.getEntity(), which fails when the player is null. Passing an empty Player object works, though. Don't know whether to change the implementation or the documentation.