Disable sneaking and increase fence height to make fences impossible to jump over normally

This commit is contained in:
KaadmY 2017-07-02 17:10:12 -07:00
parent 219d544e9c
commit 85e716ef72
2 changed files with 5 additions and 5 deletions

View File

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

View File

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