Skip to content

Commit

Permalink
Lua_api.txt: Add note of maximum value for node 'light_source'
Browse files Browse the repository at this point in the history
Maximum is 14.
A value of 15 (reserved for direct sunlight) causes a lighting bug.
  • Loading branch information
paramat committed Sep 15, 2016
1 parent 1475c1b commit 297546a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/lua_api.txt
Expand Up @@ -3664,7 +3664,7 @@ Definition tables
^ Don't forget to use "leveled" type nodebox. ]]
liquid_range = 8, -- number of flowing nodes around source (max. 8)
drowning = 0, -- Player will take this amount of damage if no bubbles are left
light_source = 0, -- Amount of light emitted by node
light_source = 0, -- Amount of light emitted by node (max. 14)
damage_per_second = 0, -- If player is inside node, this damage is caused
node_box = {type="regular"}, -- See "Node boxes"
connects_to = nodenames, --[[
Expand Down

0 comments on commit 297546a

Please sign in to comment.