mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Fix dropped craftitems/tools not using light_source values (#9438)
This commit is contained in:
parent
5c4b560b68
commit
c18dbadcb8
2 changed files with 8 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue