fix reloading model

master
D00Med 2016-11-15 13:03:57 +10:00
parent 83beba3c59
commit bfda2008f3
1 changed files with 3 additions and 3 deletions

View File

@ -349,7 +349,7 @@ mobs:register_mob("mobs_doom:cyberdemon", {
do_custom = function(self)
local pos = self.object:getpos()
local node = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name
if node == "hell:netherrack" and not self.texchanged then
if node == "hell:netherrack" and self.texchanged == false then
self.object:set_properties({textures = {"mobs_cyberdemon.png"}})
self.textchanged = true
end
@ -463,7 +463,7 @@ mobs:register_mob("mobs_doom:mancubus", {
do_custom = function(self)
local pos = self.object:getpos()
local node = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name
if node == "hell:netherrack" and not self.texchanged then
if node == "hell:netherrack" and self.texchanged == false then
self.object:set_properties({textures = {"mobs_mancubus.png"}})
self.textchanged = true
end
@ -584,7 +584,7 @@ mobs:register_mob("mobs_doom:hellbaron", {
do_custom = function(self)
local pos = self.object:getpos()
local node = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name
if node == "hell:netherrack" and not self.texchanged then
if node == "hell:netherrack" and self.texchanged == false then
self.object:set_properties({textures = {"mobs_hellbaron2.png"}})
self.textchanged = true
end