diff options
author | sfan5 <sfan5@live.de> | 2020-04-04 21:27:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-04 21:27:30 +0200 |
commit | ea30b89d3fcaf599a4d4c4e2f12f01a1d59f1072 (patch) | |
tree | b39d694b7d9e05b612656013cd47631f0ce3cc4a /builtin/game/item_entity.lua | |
parent | d5c441253669c9f88dea948d261e0d8934d28fb9 (diff) | |
download | minetest-ea30b89d3fcaf599a4d4c4e2f12f01a1d59f1072.tar.gz minetest-ea30b89d3fcaf599a4d4c4e2f12f01a1d59f1072.tar.bz2 minetest-ea30b89d3fcaf599a4d4c4e2f12f01a1d59f1072.zip |
Builtin: Make item entities glow less (#9594)
minor adjustment to #9200
Diffstat (limited to 'builtin/game/item_entity.lua')
-rw-r--r-- | builtin/game/item_entity.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/item_entity.lua b/builtin/game/item_entity.lua index 1d66799f6..968daac97 100644 --- a/builtin/game/item_entity.lua +++ b/builtin/game/item_entity.lua @@ -59,7 +59,7 @@ core.register_entity(":__builtin:item", { local size = 0.2 + 0.1 * (count / max_count) ^ (1 / 3) local coll_height = size * 0.75 local def = core.registered_nodes[itemname] - local glow = def and def.light_source + local glow = def and math.floor(def.light_source / 2 + 0.5) self.object:set_properties({ is_visible = true, |