mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 01:30:38 +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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user