1
0
mirror of https://github.com/cabaletta/baritone synced 2024-12-18 13:15:13 +00:00

Fix NullPointerException

This commit is contained in:
Brady 2018-12-15 12:27:19 -06:00
parent 764e8d7daa
commit 9703de86d3
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

@ -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;