diff --git a/mods/no_sneak_glitch/depends.txt b/mods/no_sneak_glitch/depends.txt new file mode 100644 index 0000000..e69de29 diff --git a/mods/no_sneak_glitch/description.txt b/mods/no_sneak_glitch/description.txt new file mode 100644 index 0000000..cdefa4e --- /dev/null +++ b/mods/no_sneak_glitch/description.txt @@ -0,0 +1 @@ +This mod disables the sneak glitch for all players. diff --git a/mods/no_sneak_glitch/init.lua b/mods/no_sneak_glitch/init.lua new file mode 100644 index 0000000..ae00c79 --- /dev/null +++ b/mods/no_sneak_glitch/init.lua @@ -0,0 +1,3 @@ +minetest.register_on_joinplayer(function(player) + player:set_physics_override({sneak_glitch=false}) +end) diff --git a/mods/tutorial/init.lua b/mods/tutorial/init.lua index 0d060fc..ac9f6f4 100644 --- a/mods/tutorial/init.lua +++ b/mods/tutorial/init.lua @@ -1270,20 +1270,6 @@ function tutorial.go_to_end(player) player:setpos({x=23,y=0.5,z=74}) end ---[[ -FIXME: This does not work in 0.4.10 thanks to a bug. Uncomment this as soon as -set_physics_override gets fixed - -function tutorial.disable_sneak_glitch(player) - player:set_physics_override({sneak_glitch=false, sneak=false}) -end - -minetest.register_on_newplayer(tutorial.disable_sneak_glitch) -minetest.register_on_joinplayer(tutorial.disable_sneak_glitch) -minetest.register_on_respawnplayer(tutorial.disable_sneak_glitch) -]] - - --[[ Helper tools for sign text extracting must be called with /lua from luacmd