Fixed warrior jump crash
This commit is contained in:
parent
74406f8061
commit
5bc8fc31a0
@ -201,7 +201,8 @@ local seismic_wave = {
|
|||||||
duration = 0.6,
|
duration = 0.6,
|
||||||
spread_speed = 11.3,
|
spread_speed = 11.3,
|
||||||
damage = 2,
|
damage = 2,
|
||||||
time_accumulator = 0
|
time_accumulator = 0,
|
||||||
|
pl_name = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -209,7 +210,8 @@ local seismic_wave = {
|
|||||||
function seismic_wave:on_activate(pl_name, dtime_s)
|
function seismic_wave:on_activate(pl_name, dtime_s)
|
||||||
local obj = self.object
|
local obj = self.object
|
||||||
|
|
||||||
if minetest.get_player_by_name(pl_name or "") then
|
if pl_name and minetest.get_player_by_name(pl_name) then
|
||||||
|
self.pl_name = pl_name
|
||||||
minetest.after(self.duration, function() if obj then obj:remove() end end)
|
minetest.after(self.duration, function() if obj then obj:remove() end end)
|
||||||
else
|
else
|
||||||
obj:remove()
|
obj:remove()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user