Fix NullPointerException
This commit is contained in:
parent
764e8d7daa
commit
9703de86d3
@ -55,7 +55,8 @@ public final class BlockBreakHelper implements Helper {
|
||||
}
|
||||
|
||||
public void stopBreakingBlock() {
|
||||
if (playerContext.playerController() != null) {
|
||||
// The player controller will never be null, but the player can be
|
||||
if (playerContext.player() != null) {
|
||||
playerContext.playerController().resetBlockRemoving();
|
||||
}
|
||||
lastBlock = null;
|
||||
|
Loading…
Reference in New Issue
Block a user