Deprecate completely defaults.lua

This commit is contained in:
Echoes
2024-03-03 09:55:16 +00:00
parent ee21ce3826
commit dd5c92c0bc
3 changed files with 4 additions and 4 deletions

View File

@ -131,7 +131,7 @@ function spears_set_entity(spear_type, base_damage, toughness)
end
else -- Get drag
local viscosity = minetest.registered_nodes[node.name].liquid_viscosity
local drag_coeff = tonumber(minetest.settings:get("spears_drag_coeff"))
local drag_coeff = tonumber(minetest.settings:get("spears_drag_coeff") or 0.1)
local drag = math.max(viscosity, drag_coeff)
local acceleration = vector.multiply(velocity, -drag)
acceleration.y = acceleration.y - 10 * ((7 - drag) / 7)