From 34421b64f7ec91c8f1c4db305f7b5469e90c7a72 Mon Sep 17 00:00:00 2001 From: Intelli Date: Wed, 23 Aug 2023 17:08:20 -0600 Subject: [PATCH] Check that using CampfireStartEvent before comparing campfire types --- .../net/coreprotect/listener/player/PlayerInteractListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/coreprotect/listener/player/PlayerInteractListener.java b/src/main/java/net/coreprotect/listener/player/PlayerInteractListener.java index ebab985e..3c408202 100755 --- a/src/main/java/net/coreprotect/listener/player/PlayerInteractListener.java +++ b/src/main/java/net/coreprotect/listener/player/PlayerInteractListener.java @@ -642,7 +642,7 @@ else if (BlockGroup.LIGHTABLES.contains(type)) { // extinguishing a lit block su }); */ } - else if ((type == Material.CAMPFIRE || type == Material.SOUL_CAMPFIRE) && CampfireStartListener.useCampfireStartEvent) { + else if (CampfireStartListener.useCampfireStartEvent && (type == Material.CAMPFIRE || type == Material.SOUL_CAMPFIRE)) { ItemStack handItem = null; ItemStack mainHand = player.getInventory().getItemInMainHand(); ItemStack offHand = player.getInventory().getItemInOffHand();