Skip to content

Commit

Permalink
Builtin: Make item entities glow less (#9594)
Browse files Browse the repository at this point in the history
minor adjustment to #9200
  • Loading branch information
sfan5 committed Apr 4, 2020
1 parent d5c4412 commit ea30b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/game/item_entity.lua
Expand Up @@ -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,
Expand Down

0 comments on commit ea30b89

Please sign in to comment.