💥 🐈

master
SmallJoker 2017-05-28 09:57:55 +02:00
commit 912348aed8
2 changed files with 29 additions and 0 deletions

14
README.txt Normal file
View File

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

15
init.lua Normal file
View File

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