Fixed exception when clicking in the air
This commit is contained in:
1 parent
0cfa1a9425
commit
ca3534ec58
1 file changed
+3
@@ -309,6 +309,9 @@ public class GameFixes extends SimpleHack<GameFixesConfig> implements Listener {
|
||||
if (!config.isEnabled() || !config.stopAnchorBombing()) {
|
||||
return;
|
||||
}
|
||||
if (event.getClickedBlock() == null) {
|
||||
return;
|
||||
}
|
||||
if (!event.getClickedBlock().getType().equals(Material.RESPAWN_ANCHOR)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user