From 4a54721d441292d2f07b819c70de38751a341c6a Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 30 Nov 2015 20:29:18 +0000 Subject: [PATCH] Add no_sneak_glitch --- mods/no_sneak_glitch/depends.txt | 0 mods/no_sneak_glitch/description.txt | 1 + mods/no_sneak_glitch/init.lua | 3 +++ 3 files changed, 4 insertions(+) create mode 100644 mods/no_sneak_glitch/depends.txt create mode 100644 mods/no_sneak_glitch/description.txt create mode 100644 mods/no_sneak_glitch/init.lua diff --git a/mods/no_sneak_glitch/depends.txt b/mods/no_sneak_glitch/depends.txt new file mode 100644 index 0000000..e69de29 diff --git a/mods/no_sneak_glitch/description.txt b/mods/no_sneak_glitch/description.txt new file mode 100644 index 0000000..cdefa4e --- /dev/null +++ b/mods/no_sneak_glitch/description.txt @@ -0,0 +1 @@ +This mod disables the sneak glitch for all players. diff --git a/mods/no_sneak_glitch/init.lua b/mods/no_sneak_glitch/init.lua new file mode 100644 index 0000000..79655a4 --- /dev/null +++ b/mods/no_sneak_glitch/init.lua @@ -0,0 +1,3 @@ +minetest.register_on_joinplayer(function(player) + player:set_physics_override({sneak_glitch=false, sneak=false}) +end)