File tree 1 file changed +3
-13
lines changed
1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -18,18 +18,6 @@ core.register_entity(":__builtin:falling_node", {
18
18
19
19
set_node = function (self , node )
20
20
self .node = node
21
- local stack = ItemStack (node .name )
22
- local itemtable = stack :to_table ()
23
- local itemname = nil
24
- if itemtable then
25
- itemname = stack :to_table ().name
26
- end
27
- local item_texture = nil
28
- local item_type = " "
29
- if core .registered_items [itemname ] then
30
- item_texture = core .registered_items [itemname ].inventory_image
31
- item_type = core .registered_items [itemname ].type
32
- end
33
21
local prop = {
34
22
is_visible = true ,
35
23
textures = {node .name },
@@ -43,7 +31,9 @@ core.register_entity(":__builtin:falling_node", {
43
31
44
32
on_activate = function (self , staticdata )
45
33
self .object :set_armor_groups ({immortal = 1 })
46
- self :set_node ({name = staticdata })
34
+ if staticdata then
35
+ self :set_node ({name = staticdata })
36
+ end
47
37
end ,
48
38
49
39
on_step = function (self , dtime )
You can’t perform that action at this time.
0 commit comments