mirror of
https://github.com/appgurueu/modlib.git
synced 2024-08-20 05:14:10 +02:00
Fix flowingliquid helper doc
This commit is contained in:
parent
837b067963
commit
cb1192d9d8
@ -146,8 +146,7 @@ function decode_base64(base64)
|
|||||||
end
|
end
|
||||||
|
|
||||||
liquid_level_max = 8
|
liquid_level_max = 8
|
||||||
--+ Calculates the flow direction of a flowingliquid node
|
--+ Calculates the corner levels of a flowingliquid node
|
||||||
--# as returned by `minetest.get_node`
|
|
||||||
--> 4 corner levels from -0.5 to 0.5 as list of `modlib.vector`
|
--> 4 corner levels from -0.5 to 0.5 as list of `modlib.vector`
|
||||||
function get_liquid_corner_levels(pos)
|
function get_liquid_corner_levels(pos)
|
||||||
local node = minetest.get_node(pos)
|
local node = minetest.get_node(pos)
|
||||||
@ -221,7 +220,6 @@ end
|
|||||||
|
|
||||||
flowing_downwards = modlib.vector.new{0, -1, 0}
|
flowing_downwards = modlib.vector.new{0, -1, 0}
|
||||||
--+ Calculates the flow direction of a flowingliquid node
|
--+ Calculates the flow direction of a flowingliquid node
|
||||||
--# as returned by `minetest.get_node`
|
|
||||||
--> `modlib.minetest.flowing_downwards = modlib.vector.new{0, -1, 0}` if only flowing downwards
|
--> `modlib.minetest.flowing_downwards = modlib.vector.new{0, -1, 0}` if only flowing downwards
|
||||||
--> surface direction as `modlib.vector` else
|
--> surface direction as `modlib.vector` else
|
||||||
function get_liquid_flow_direction(pos)
|
function get_liquid_flow_direction(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user