Fix dropped craftitems/tools not using light_source values (#9438)

This commit is contained in:
LoneWolfHT 2020-08-29 16:02:21 -07:00 committed by Nils Dagsson Moskopp
parent 3ec4ffeb05
commit 32c85cf41b
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 1 additions and 1 deletions

View File

@ -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({