From 9e31c3c23caba216dadd6974c146d35a4d37be9f Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Wed, 23 Dec 2015 19:00:33 +0100 Subject: [PATCH] [snow] Don't hurt gauges' hp bars --- mods/snow/src/snowball.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/snow/src/snowball.lua b/mods/snow/src/snowball.lua index 5d2f0dda..84866352 100755 --- a/mods/snow/src/snowball.lua +++ b/mods/snow/src/snowball.lua @@ -118,7 +118,8 @@ function snow_snowball_ENTITY.on_step(self, dtime) if self.timer > 0.15 then for i, v in pairs(minetest.get_objects_inside_radius(self.object:getpos(), 1)) do - if v ~= self.object and v:get_entity_name() ~= "__builtin:item" then + if v ~= self.object and v:get_entity_name() ~= "__builtin:item" + and v:get_entity_name() ~= "gauges:hp_bar" then v:punch(minetest.get_player_by_name(self.thrower), 1.0,{full_punch_interval=1.0, damage_groups = {fleshy=1} }) minetest.add_item(self.object:getpos(), "default:snow") self.object:remove()