Skip to content

Commit

Permalink
Check that using CampfireStartEvent before comparing campfire types
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelli committed Aug 23, 2023
1 parent 0edf160 commit 34421b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 34421b6

Please sign in to comment.