mirror of
http://repo.or.cz/minetest_pyramids/tsm_pyramids.git
synced 2024-12-22 23:40:18 +01:00
Fix broken mummy hit texture
This commit is contained in:
parent
0974de93e4
commit
f5fef5118d
@ -49,15 +49,11 @@ local ANIM_WALK_MINE = 5
|
|||||||
local ANIM_MINE = 6
|
local ANIM_MINE = 6
|
||||||
|
|
||||||
local function hit(self)
|
local function hit(self)
|
||||||
local prop = {
|
self.object:set_texture_mod("^tsm_pyramids_hit.png")
|
||||||
mesh = mummy_mesh,
|
|
||||||
textures = {"tsm_pyramids_mummy.png^tsm_pyramids_hit.png"},
|
|
||||||
}
|
|
||||||
self.object:set_properties(prop)
|
|
||||||
minetest.after(0.4, function(self)
|
minetest.after(0.4, function(self)
|
||||||
local prop = {textures = mummy_texture,}
|
local prop = {textures = mummy_texture,}
|
||||||
if self ~= nil and self.object ~= nil then
|
if self ~= nil and self.object ~= nil then
|
||||||
self.object:set_properties(prop)
|
self.object:set_texture_mod("")
|
||||||
end
|
end
|
||||||
end, self)
|
end, self)
|
||||||
end
|
end
|
||||||
@ -65,7 +61,6 @@ end
|
|||||||
local function mummy_update_visuals_def(self)
|
local function mummy_update_visuals_def(self)
|
||||||
npc_anim = 0 -- Animation will be set further below immediately
|
npc_anim = 0 -- Animation will be set further below immediately
|
||||||
local prop = {
|
local prop = {
|
||||||
mesh = mummy_mesh,
|
|
||||||
textures = mummy_texture,
|
textures = mummy_texture,
|
||||||
}
|
}
|
||||||
self.object:set_properties(prop)
|
self.object:set_properties(prop)
|
||||||
|
Loading…
Reference in New Issue
Block a user