mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-24 12:16:36 +01:00
Check that using CampfireStartEvent before comparing campfire types
This commit is contained in:
parent
0edf160f43
commit
34421b64f7
@ -642,7 +642,7 @@ public final class PlayerInteractListener extends Queue implements Listener {
|
||||
});
|
||||
*/
|
||||
}
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user