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.
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.