Disable the sneak glitch
parent
09b724f7bd
commit
a9c7251964
|
@ -0,0 +1 @@
|
|||
This mod disables the sneak glitch for all players.
|
|
@ -0,0 +1,3 @@
|
|||
minetest.register_on_joinplayer(function(player)
|
||||
player:set_physics_override({sneak_glitch=false})
|
||||
end)
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue