Skip to content

Commit ea30b89

Browse files
authoredApr 4, 2020
Builtin: Make item entities glow less (#9594)
minor adjustment to #9200
1 parent d5c4412 commit ea30b89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎builtin/game/item_entity.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ core.register_entity(":__builtin:item", {
5959
local size = 0.2 + 0.1 * (count / max_count) ^ (1 / 3)
6060
local coll_height = size * 0.75
6161
local def = core.registered_nodes[itemname]
62-
local glow = def and def.light_source
62+
local glow = def and math.floor(def.light_source / 2 + 0.5)
6363

6464
self.object:set_properties({
6565
is_visible = true,

0 commit comments

Comments
 (0)
Please sign in to comment.