Doors: Trim open fencegate collison box again
authorparamat <mat.gregory@virginmedia.com>
Thu, 22 Sep 2016 12:46:12 +0000 (13:46 +0100)
committerparamat <mat.gregory@virginmedia.com>
Fri, 23 Sep 2016 17:24:47 +0000 (18:24 +0100)
The collision box still extended into a neighbouring empty node, causing
falling node objects to collide but not transform back into normal nodes.
Completes the fix started in a previous similar commit.

mods/doors/init.lua

index ed7fbb34648c5ef41871bf70b8b4ea006dfb9034..73a73a136e13f7ee779d982857e5ebc3fe9cd02a 100644 (file)
@@ -696,7 +696,7 @@ function doors.register_fencegate(name, def)
        fence_open.collision_box = {
                type = "fixed",
                fixed = {{-1/2, -1/2, -1/4, -3/8, 1/2, 1/4},
-                       {-5/8, -3/8, -1/2, -3/8, 3/8, 0}},
+                       {-1/2, -3/8, -1/2, -3/8, 3/8, 0}},
        }
 
        minetest.register_node(":" .. name .. "_closed", fence_closed)