1
0
mirror of https://github.com/HybridDog/builtin_item.git synced 2024-12-22 17:00:27 +01:00

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

12
.luacheckrc Normal file
View File

@ -0,0 +1,12 @@
read_globals = {
minetest = {
fields = {
registered_entities = {
read_only = false,
other_fields = true
}
},
other_fields = true
},
"vector"
}

View File

@ -1,3 +1,2 @@
MIT for the code
CC-BY 4.0 for the sound
The original mod was licensed under WTFPL.

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

Binary file not shown.