diff options
author | pecksin <78765996+pecksin@users.noreply.github.com> | 2022-02-16 17:06:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 17:06:00 -0500 |
commit | 5d0b18a0d0bd02a9b77b8948d6887bb661a385da (patch) | |
tree | a510f83ee2e0cc78687a9009d127505a41bc2d62 /games/devtest | |
parent | 258ae994915e1b9fc5b3a72627886f2ce4334902 (diff) | |
download | minetest-5d0b18a0d0bd02a9b77b8948d6887bb661a385da.tar.gz minetest-5d0b18a0d0bd02a9b77b8948d6887bb661a385da.tar.bz2 minetest-5d0b18a0d0bd02a9b77b8948d6887bb661a385da.zip |
Use absolute value for bouncy in collision (#11969)
* use abs(bouncy) in collision
* test case for negative bouncy
* send abs(bouncy) to old clients
Diffstat (limited to 'games/devtest')
-rw-r--r-- | games/devtest/mods/testnodes/properties.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/devtest/mods/testnodes/properties.lua b/games/devtest/mods/testnodes/properties.lua index 51f703d7c..89facf71c 100644 --- a/games/devtest/mods/testnodes/properties.lua +++ b/games/devtest/mods/testnodes/properties.lua @@ -252,9 +252,9 @@ for i=-100, 100, 25 do end -- Bouncy nodes (various bounce levels) -for i=20, 180, 20 do +for i=-140, 180, 20 do local val = math.floor(((i-20)/200)*255) - minetest.register_node("testnodes:bouncy"..i, { + minetest.register_node(("testnodes:bouncy"..i):gsub("-","NEG"), { description = S("Bouncy Node (@1%)", i), groups = {bouncy=i, dig_immediate=3}, |