Fix dropped craftitems/tools not using light_source values (#9438)
This commit is contained in:
parent
3ec4ffeb05
commit
32c85cf41b
|
@ -54,7 +54,7 @@ core.register_entity(":__builtin:item", {
|
|||
local max_count = stack:get_stack_max()
|
||||
local count = math.min(stack:get_count(), max_count)
|
||||
local size = 0.2 + 0.1 * (count / max_count) ^ (1 / 3)
|
||||
local def = core.registered_nodes[itemname]
|
||||
local def = core.registered_items[itemname]
|
||||
local glow = def and math.floor(def.light_source / 2 + 0.5)
|
||||
|
||||
self.object:set_properties({
|
||||
|
|
Loading…
Reference in New Issue