From ae8e6fc32ccb8d66c2ee5de8aeaed0e6c21c8d90 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Tue, 28 Apr 2015 10:40:11 +0200 Subject: [PATCH] Fixed logic blocks' indentation and ending - Fixed the 'end' crash in api.lua (after last merge) --- mods/mobs/api.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mods/mobs/api.lua b/mods/mobs/api.lua index b3ad1d00..ff720cbc 100644 --- a/mods/mobs/api.lua +++ b/mods/mobs/api.lua @@ -660,13 +660,6 @@ lifetimer = def.lifetimer or 600, entity_physics(pos, 3) -- hurt player/mobs caught in blast area if minetest.find_node_near(pos, 1, {"group:water"}) or minetest.is_protected(pos, "") then - self.object:remove() - if self.sounds.explode ~= "" then - minetest.sound_play(self.sounds.explode, {pos = pos, gain = 1.0, max_hear_distance = 16}) - end - effect(pos, 10, "tnt_smoke.png") - return - end self.object:remove() if self.sounds.explode ~= "" then minetest.sound_play(self.sounds.explode, {pos = pos, gain = 1.0, max_hear_distance = 16}) @@ -1104,7 +1097,6 @@ function mobs:explosion(pos, radius, fire, smoke, sound) vi = vi + 1 end end - end end -- on mob death drop items