From 9cd454f9d7ff0468ae67914b53cd74f82d3262aa Mon Sep 17 00:00:00 2001 From: Sumyjkl Date: Tue, 26 Jul 2022 23:16:14 +1000 Subject: [PATCH 1/2] magma no longer damages player on halfslabs --- mods/CORE/walkover/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mods/CORE/walkover/init.lua b/mods/CORE/walkover/init.lua index eb9de4218..7fa7c7aab 100644 --- a/mods/CORE/walkover/init.lua +++ b/mods/CORE/walkover/init.lua @@ -31,8 +31,7 @@ minetest.register_globalstep(function(dtime) if timer >= 0.3 then for _, player in pairs(get_connected_players()) do local ppos = player:get_pos() - ppos.y = ceil(ppos.y) - local npos = vector.add(ppos, vector.new(0, -1, 0)) + local npos = vector.add(ppos, vector.new(0, -0.1, 0)) if npos then local node = get_node(npos) if node then From 93e0e0607ef8009a5e1515cc75e16a69debde961 Mon Sep 17 00:00:00 2001 From: Sumyjkl Date: Tue, 26 Jul 2022 23:21:56 +1000 Subject: [PATCH 2/2] walkover globalstep timer changed to align with mc time for damage and other actions --- mods/CORE/walkover/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/CORE/walkover/init.lua b/mods/CORE/walkover/init.lua index 7fa7c7aab..552ac4ff4 100644 --- a/mods/CORE/walkover/init.lua +++ b/mods/CORE/walkover/init.lua @@ -28,7 +28,7 @@ end) local timer = 0 minetest.register_globalstep(function(dtime) timer = timer + dtime - if timer >= 0.3 then + if timer >= 0.6 then for _, player in pairs(get_connected_players()) do local ppos = player:get_pos() local npos = vector.add(ppos, vector.new(0, -0.1, 0))