From f5fef5118ddfb9272dd6ad4f867c471dc3958eec Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 6 Apr 2020 14:59:11 +0200 Subject: [PATCH] Fix broken mummy hit texture --- mummy.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/mummy.lua b/mummy.lua index 42bc0fc..1d3c046 100644 --- a/mummy.lua +++ b/mummy.lua @@ -49,15 +49,11 @@ local ANIM_WALK_MINE = 5 local ANIM_MINE = 6 local function hit(self) - local prop = { - mesh = mummy_mesh, - textures = {"tsm_pyramids_mummy.png^tsm_pyramids_hit.png"}, - } - self.object:set_properties(prop) + self.object:set_texture_mod("^tsm_pyramids_hit.png") minetest.after(0.4, function(self) local prop = {textures = mummy_texture,} if self ~= nil and self.object ~= nil then - self.object:set_properties(prop) + self.object:set_texture_mod("") end end, self) end @@ -65,7 +61,6 @@ end local function mummy_update_visuals_def(self) npc_anim = 0 -- Animation will be set further below immediately local prop = { - mesh = mummy_mesh, textures = mummy_texture, } self.object:set_properties(prop)