diff --git a/init.lua b/init.lua index 0ca2fa1..9703210 100644 --- a/init.lua +++ b/init.lua @@ -189,6 +189,7 @@ local function playercheck(player, stepdata) logact("%s correcting %0.2f", player:get_player_name(), vector.distance(pos, data.pos)) + data.pos.keepinv = true player:set_pos(data.pos) return nodecore.player_visible(player) and energized(pos) end @@ -225,7 +226,7 @@ local function playercheck(player, stepdata) data.oldpos = appendpos(data.oldpos or {}, data.pos) data.pos = hit zipdata_set(player, data) - player:set_pos({x = hit.x, y = hit.y - yoffs, z = hit.z}) + player:set_pos({x = hit.x, y = hit.y - yoffs, z = hit.z, keepinv = true}) return nodecore.player_visible(player) and sparkly(p, hit) end end diff --git a/screenshot.png b/screenshot.png index c14fd5f..bae56a3 100644 Binary files a/screenshot.png and b/screenshot.png differ