Disable the sneak glitch

master
Wuzzy 2014-11-01 21:59:35 +01:00
parent 09b724f7bd
commit a9c7251964
4 changed files with 4 additions and 14 deletions

View File

View File

@ -0,0 +1 @@
This mod disables the sneak glitch for all players.

View File

@ -0,0 +1,3 @@
minetest.register_on_joinplayer(function(player)
player:set_physics_override({sneak_glitch=false})
end)

View File

@ -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