summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortenplus1 <kinsellaja@yahoo.com>2014-11-25 13:02:16 +0000
committertenplus1 <kinsellaja@yahoo.com>2014-11-25 13:02:16 +0000
commitf33b548c0d8db095c2de374f5b1317ee782d12df (patch)
tree6c8e2ccd9074ba33695e1f03e3dc92501992c5b8
parent31472450411a74c900a69477c13c9efd73e93e77 (diff)
bugfix
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index a1f94c8..361b05d 100644
--- a/init.lua
+++ b/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
textures = {"protector:display_node"},
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
self.object:remove()
return