From 88cc7d8aa9371ff0f69dba35e83f6c3b4a3d649f Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Fri, 19 Feb 2021 16:35:13 -0500 Subject: [PATCH] [16.2k Lines] Fixed a bug in the hub where player's in creative couldn't interact with certain blocks --- .../main/java/zone/themcgamer/hub/listener/PlayerListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hub/src/main/java/zone/themcgamer/hub/listener/PlayerListener.java b/hub/src/main/java/zone/themcgamer/hub/listener/PlayerListener.java index c3bcfc6..4e63238 100644 --- a/hub/src/main/java/zone/themcgamer/hub/listener/PlayerListener.java +++ b/hub/src/main/java/zone/themcgamer/hub/listener/PlayerListener.java @@ -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;