Fixed exception when clicking in the air

This commit is contained in:
Falvyu committed 2020-08-04 22:57:47 +02:00
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;
}