[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:
parent
3e717de947
commit
88cc7d8aa9
@ -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;
|
||||
|
Reference in New Issue
Block a user