Disable the sneak glitch
This commit is contained in:
parent
09b724f7bd
commit
a9c7251964
0
mods/no_sneak_glitch/depends.txt
Normal file
0
mods/no_sneak_glitch/depends.txt
Normal file
1
mods/no_sneak_glitch/description.txt
Normal file
1
mods/no_sneak_glitch/description.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
This mod disables the sneak glitch for all players.
|
3
mods/no_sneak_glitch/init.lua
Normal file
3
mods/no_sneak_glitch/init.lua
Normal file
@ -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})
|
player:setpos({x=23,y=0.5,z=74})
|
||||||
end
|
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
|
Helper tools for sign text extracting
|
||||||
must be called with /lua from luacmd
|
must be called with /lua from luacmd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user