ice spikes didn't disappear after 5s
This commit is contained in:
parent
98b0a6a9ea
commit
7657fddcaa
@ -80,8 +80,6 @@ end
|
||||
function ice_spikes:remove()
|
||||
local sound = {name = "fbrawl_ice_break", pos = self.object:get_pos(), max_hear_distance = 8}
|
||||
|
||||
if not self._to_remove then return end
|
||||
|
||||
self._to_remove = false
|
||||
|
||||
minetest.sound_play(sound, sound, true)
|
||||
@ -114,7 +112,7 @@ function ice_spikes:on_step(dtime)
|
||||
self._time_passed = self._time_passed + dtime
|
||||
self._tick_buffer = self._tick_buffer + dtime
|
||||
|
||||
if not player or self._to_remove or (self._time_passed >= self._lifetime) then
|
||||
if (not player) or self._to_remove or (self._time_passed >= self._lifetime) then
|
||||
self:remove()
|
||||
return
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user