[16.2k Lines] Fixed a bug in the hub where player's in creative couldn't interact with certain blocks

This commit is contained in:
Rainnny7 2021-02-19 16:35:13 -05:00
parent 3e717de947
commit 88cc7d8aa9

View File

@ -169,6 +169,8 @@ public class PlayerListener implements Listener {
@EventHandler
private void onBlockInteract(PlayerInteractEvent event) {
if (event.getPlayer().getGameMode() == GameMode.CREATIVE)
return;
Block block = event.getClickedBlock();
if (block == null)
return;