Remove unused code and file, and add a .luacheckrc

This commit is contained in:
HybridDog
2020-10-11 13:29:29 +02:00
parent 4f85670e78
commit 0f81edd278
4 changed files with 14 additions and 7 deletions

View File

@ -1,11 +1,7 @@
-- Use the movement gravity for the downwards acceleration.
-- The setting may change in-game but for simplicity we don't support this.
local movement_gravity = tonumber(core.settings:get("movement_gravity")) or 9.81
local function is_flowing_liquid(nodename)
local def = minetest.registered_nodes[nodename]
return def and def.liquidtype == "flowing"
end
local movement_gravity = tonumber(minetest.settings:get("movement_gravity"))
or 9.81
-- get_flow_raw determines the horizontal flow vector for a flowing liquid node,
-- or returns nothing if the flow is zero