Support "negative" bouncy values

This commit is contained in:
Wuzzy 2024-11-27 20:50:43 +01:00
parent 947df2bd6e
commit d9acd10977

View File

@ -669,7 +669,7 @@ doc.add_category("nodes", {
end
local bouncy = data.def.groups.bouncy
if bouncy ~= nil and bouncy ~= 0 then
datastring = datastring .. S("This block will make you bounce off with an elasticity of @1%.", bouncy).."\n"
datastring = datastring .. S("This block will make you bounce off with an elasticity of @1%.", math.abs(bouncy)).."\n"
end
local slippery = data.def.groups.slippery
if slippery ~= nil and slippery ~= 0 then