From 000dd3cbc970aab94a8a2695d0efd50f11cec2f1 Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Thu, 28 Jan 2021 20:16:26 +0100 Subject: [PATCH] Only burning arrows set objects on fire --- mods/ITEMS/mcl_bows/arrow.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_bows/arrow.lua b/mods/ITEMS/mcl_bows/arrow.lua index 9f5b3da2c5..f69cfc09eb 100644 --- a/mods/ITEMS/mcl_bows/arrow.lua +++ b/mods/ITEMS/mcl_bows/arrow.lua @@ -251,7 +251,9 @@ ARROW_ENTITY.on_step = function(self, dtime) armor.last_damage_types[obj:get_player_name()] = "projectile" end damage_particles(self.object:get_pos(), self._is_critical) - mcl_burning.set_on_fire(obj, 4) + if mcl_burning.is_burning(self.object) then + mcl_burning.set_on_fire(obj, 4) + end obj:punch(self.object, 1.0, { full_punch_interval=1.0, damage_groups={fleshy=self._damage},