mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-18 00:08:25 +01:00
Fixed logic blocks' indentation and ending
- Fixed the 'end' crash in api.lua (after last merge)
This commit is contained in:
parent
b368f3250e
commit
ae8e6fc32c
@ -660,13 +660,6 @@ lifetimer = def.lifetimer or 600,
|
|||||||
entity_physics(pos, 3) -- hurt player/mobs caught in blast area
|
entity_physics(pos, 3) -- hurt player/mobs caught in blast area
|
||||||
if minetest.find_node_near(pos, 1, {"group:water"})
|
if minetest.find_node_near(pos, 1, {"group:water"})
|
||||||
or minetest.is_protected(pos, "") then
|
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()
|
self.object:remove()
|
||||||
if self.sounds.explode ~= "" then
|
if self.sounds.explode ~= "" then
|
||||||
minetest.sound_play(self.sounds.explode, {pos = pos, gain = 1.0, max_hear_distance = 16})
|
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
|
vi = vi + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- on mob death drop items
|
-- on mob death drop items
|
||||||
|
Loading…
Reference in New Issue
Block a user