From d80e2d0bf917307dbea2c8a839bf8fdb7a081245 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 20 Jan 2017 18:31:24 +0100 Subject: [PATCH] Prevent easy jumping over fence gates --- mods/mcl_fences/init.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mods/mcl_fences/init.lua b/mods/mcl_fences/init.lua index aeb6aa23c2..ed3f3e418e 100644 --- a/mods/mcl_fences/init.lua +++ b/mods/mcl_fences/init.lua @@ -154,10 +154,16 @@ mcl_fences.register_fence = function(id, fence_name, fence_gate_name, texture, f {2/16, -1/2+6/16, -1/16, 1/2, -1/2+9/16, 1/16}, --unten(quer) z } }, + collision_box = { + type = "fixed", + fixed = { + {-1/2, -1/2+5/16, -2/16, 1/2, 1, 2/16}, --gate + } + }, selection_box = { type = "fixed", fixed = { - {-1/2, -1/2+5/16, -1/16, 1/2, 1/2, 1/16}, --gate + {-1/2, -1/2+5/16, -1/16, 1/2, 1/2, 1/16}, --gate } }, on_construct = function(pos)