bugfix
This commit is contained in:
parent
3147245041
commit
f33b548c0d
1 changed files with 1 additions and 1 deletions
2
init.lua
2
init.lua
|
|
@ -353,7 +353,7 @@ minetest.register_entity("protector:display", {
|
||||||
visual_size = {x=1.0/1.5,y=1.0/1.5}, -- wielditem seems to be scaled to 1.5 times original node size
|
visual_size = {x=1.0/1.5,y=1.0/1.5}, -- wielditem seems to be scaled to 1.5 times original node size
|
||||||
textures = {"protector:display_node"},
|
textures = {"protector:display_node"},
|
||||||
on_step = function(self, dtime)
|
on_step = function(self, dtime)
|
||||||
nam = minetest.get_node(self.object:getpos()).name
|
local nam = minetest.get_node(self.object:getpos()).name
|
||||||
if nam ~= "protector:protect" and nam ~= "protector:protect2" then
|
if nam ~= "protector:protect" and nam ~= "protector:protect2" then
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue