diff options
-rw-r--r-- | init.lua | 24 |
1 files changed, 14 insertions, 10 deletions
@@ -212,22 +212,26 @@ local vsize = {x=1.0/1.5, y=1.0/1.5} local ecbox = {0, 0, 0, 0, 0, 0} minetest.register_entity("areasprotector:display_large", { - physical = false, - collisionbox = ecbox, - visual = "wielditem", - visual_size = vsize, - textures = {"areasprotector:display_node_large"}, + initial_properties = { + physical = false, + collisionbox = ecbox, + visual = "wielditem", + visual_size = vsize, + textures = {"areasprotector:display_node_large"}, + }, on_step = function(self, dtime) on_step(self, dtime, "large") end }) minetest.register_entity("areasprotector:display_small", { - physical = false, - collisionbox = ecbox, - visual = "wielditem", - visual_size = vsize, - textures = {"areasprotector:display_node_small"}, + initial_properties = { + physical = false, + collisionbox = ecbox, + visual = "wielditem", + visual_size = vsize, + textures = {"areasprotector:display_node_large"}, + }, on_step = function(self, dtime) on_step(self, dtime, "small") end |