mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
Builtin: Make item entities glow less (#9594)
minor adjustment to #9200
This commit is contained in:
parent
d5c4412536
commit
ea30b89d3f
@ -59,7 +59,7 @@ core.register_entity(":__builtin:item", {
|
|||||||
local size = 0.2 + 0.1 * (count / max_count) ^ (1 / 3)
|
local size = 0.2 + 0.1 * (count / max_count) ^ (1 / 3)
|
||||||
local coll_height = size * 0.75
|
local coll_height = size * 0.75
|
||||||
local def = core.registered_nodes[itemname]
|
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({
|
self.object:set_properties({
|
||||||
is_visible = true,
|
is_visible = true,
|
||||||
|
Loading…
Reference in New Issue
Block a user