mirror of
http://repo.or.cz/minetest_pyramids/tsm_pyramids.git
synced 2024-12-23 07:50:18 +01:00
Clean up variable handling in minetest.after
This commit is contained in:
parent
104b2e947a
commit
03a7de0b2d
10
mummy.lua
10
mummy.lua
@ -52,10 +52,12 @@ local function hit(self)
|
|||||||
textures = {"tsm_pyramids_mummy.png^tsm_pyramids_hit.png"},
|
textures = {"tsm_pyramids_mummy.png^tsm_pyramids_hit.png"},
|
||||||
}
|
}
|
||||||
self.object:set_properties(prop)
|
self.object:set_properties(prop)
|
||||||
minetest.after(0.4, function()
|
minetest.after(0.4, function(self)
|
||||||
local prop = {textures = mummy_texture,}
|
local prop = {textures = mummy_texture,}
|
||||||
self.object:set_properties(prop)
|
if self.object ~= nil then
|
||||||
end)
|
self.object:set_properties(prop)
|
||||||
|
end
|
||||||
|
end, self)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function mummy_update_visuals_def(self)
|
local function mummy_update_visuals_def(self)
|
||||||
|
Loading…
Reference in New Issue
Block a user