💥 🐈
commit
912348aed8
|
@ -0,0 +1,14 @@
|
|||
Minetest mod: sneak_glitch
|
||||
============================
|
||||
This mod re-enables the sneak glitch in your Minetest world.
|
||||
If you want to use the old sneak code, add the following setting
|
||||
to your minetest.conf file:
|
||||
|
||||
sneak_glitch.use_old_code = true
|
||||
|
||||
In case you used the ingame command `/set` to apply this change,
|
||||
you will have to rejoin the world.
|
||||
|
||||
|
||||
License: CC0
|
||||
Dependencies: (none)
|
|
@ -0,0 +1,15 @@
|
|||
-- Enable the sneak glitch (horray!)
|
||||
|
||||
local use_old_code = minetest.settings:get_bool("sneak_glitch.use_old_code")
|
||||
if use_old_code == nil then
|
||||
-- Default to the new sneak code
|
||||
use_old_code = false
|
||||
end
|
||||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
player:set_physics_override({
|
||||
sneak_glitch = true,
|
||||
sneak = true,
|
||||
new_move = not use_old_code
|
||||
})
|
||||
end)
|
Loading…
Reference in New Issue