summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLoneWolfHT <lonewolf04361@gmail.com>2020-08-29 16:02:21 -0700
committerGitHub <noreply@github.com>2020-08-30 00:02:21 +0100
commitc18dbadcb898db6d1f68b72afec56c599af317ec (patch)
treebb44e483ea2a807720afa5b9c8480a0d40cf18b1 /builtin
parent5c4b560b6812bbdf7a9d3202c95bad5c9df97d66 (diff)
downloadminetest-c18dbadcb898db6d1f68b72afec56c599af317ec.tar.gz
minetest-c18dbadcb898db6d1f68b72afec56c599af317ec.tar.bz2
minetest-c18dbadcb898db6d1f68b72afec56c599af317ec.zip
Fix dropped craftitems/tools not using light_source values (#9438)
Diffstat (limited to 'builtin')
-rw-r--r--builtin/game/item_entity.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/item_entity.lua b/builtin/game/item_entity.lua
index 20dd18044..f380d071d 100644
--- a/builtin/game/item_entity.lua
+++ b/builtin/game/item_entity.lua
@@ -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({