diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..402a666 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,12 @@ +read_globals = { + minetest = { + fields = { + registered_entities = { + read_only = false, + other_fields = true + } + }, + other_fields = true + }, + "vector" +} diff --git a/LICENSE.txt b/LICENSE.txt index 2577769..078a598 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,3 +1,2 @@ MIT for the code -CC-BY 4.0 for the sound The original mod was licensed under WTFPL. diff --git a/init.lua b/init.lua index a8c653c..bda4da1 100644 --- a/init.lua +++ b/init.lua @@ -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 diff --git a/sounds/builtin_item_lava.ogg b/sounds/builtin_item_lava.ogg deleted file mode 100644 index 5c293fe..0000000 Binary files a/sounds/builtin_item_lava.ogg and /dev/null differ