We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7603215 commit ad96df1Copy full SHA for ad96df1
builtin/game/falling.lua
@@ -22,7 +22,18 @@ core.register_entity(":__builtin:falling_node", {
22
23
set_node = function(self, node, meta)
24
self.node = node
25
- self.meta = meta or {}
+ meta = meta or {}
26
+ if type(meta.to_table) == "function" then
27
+ meta = meta:to_table()
28
+ end
29
+ for _, list in pairs(meta.inventory or {}) do
30
+ for i, stack in pairs(list) do
31
+ if type(stack) == "userdata" then
32
+ list[i] = stack:to_string()
33
34
35
36
+ self.meta = meta
37
self.object:set_properties({
38
is_visible = true,
39
textures = {node.name},
0 commit comments