From 85e716ef72f0a7a2b080097e1dc660ebf810b911 Mon Sep 17 00:00:00 2001 From: KaadmY Date: Sun, 2 Jul 2017 17:10:12 -0700 Subject: [PATCH] Disable sneaking and increase fence height to make fences impossible to jump over normally --- mods/default/nodes.lua | 6 +++--- mods/default/player.lua | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index d19b225..e39ba85 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -760,7 +760,7 @@ minetest.register_node( paramtype = "light", collision_box = { type = "fixed", - fixed = {-0.4, -0.5, -0.4, 0.4, 0.75, 0.4}, + fixed = {-0.4, -0.5, -0.4, 0.4, 1.0, 0.4}, }, groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, fence = 1}, is_ground_content = false, @@ -781,7 +781,7 @@ minetest.register_node( paramtype = "light", collision_box = { type = "fixed", - fixed = {-0.4, -0.5, -0.4, 0.4, 0.75, 0.4}, + fixed = {-0.4, -0.5, -0.4, 0.4, 1.0, 0.4}, }, groups = {snappy = 1, choppy = 1, oddly_breakable_by_hand = 1, fence = 1}, is_ground_content = false, @@ -802,7 +802,7 @@ minetest.register_node( paramtype = "light", collision_box = { type = "fixed", - fixed = {-0.4, -0.5, -0.4, 0.4, 0.75, 0.4}, + fixed = {-0.4, -0.5, -0.4, 0.4, 1.0, 0.4}, }, groups = {snappy = 1, choppy = 1, oddly_breakable_by_hand = 1, fence = 1}, is_ground_content = false, diff --git a/mods/default/player.lua b/mods/default/player.lua index 0364eb3..e289bba 100644 --- a/mods/default/player.lua +++ b/mods/default/player.lua @@ -122,8 +122,8 @@ local function on_joinplayer(player) -- Uncomment to enable player-on-player collisions -- player:set_properties({physical = true}) - -- Uncomment to disable the sneak glitch - player:set_physics_override({sneak_glitch = false}) + -- Uncomment to disable sneaking + player:set_physics_override({sneak = false}) -- Uncomment to disable the minimap player:hud_set_flags({minimap = false})