Increase thickness of doors and trapdoors

This commit is contained in:
Wuzzy 2017-03-12 03:41:28 +01:00
parent 7c4a88aa28
commit d89f02d338
1 changed files with 3 additions and 7 deletions

View File

@ -37,7 +37,7 @@ function mcl_doors:register_door(name, def)
def.sound_close = "doors_door_close" def.sound_close = "doors_door_close"
end end
local box = {{-8/16, -8/16, -8/16, 8/16, 8/16, -6.5/16}} local box = {{-8/16, -8/16, -8/16, 8/16, 8/16, -5/16}}
if not def.node_box_bottom then if not def.node_box_bottom then
def.node_box_bottom = box def.node_box_bottom = box
@ -539,7 +539,7 @@ function mcl_doors:register_trapdoor(name, def)
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
{-8/16, -8/16, -8/16, 8/16, -6/16, 8/16},}, {-8/16, -8/16, -8/16, 8/16, -5/16, 8/16},},
}, },
on_creation = function(pos) on_creation = function(pos)
state = 0 state = 0
@ -567,11 +567,7 @@ function mcl_doors:register_trapdoor(name, def)
drop = name, drop = name,
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {-0.5, -0.5, 0.4, 0.5, 0.5, 0.5} fixed = {-0.5, -0.5, 5/16, 0.5, 0.5, 0.5}
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, 0.4, 0.5, 0.5, 0.5}
}, },
on_rightclick = function(pos, node, clicker) on_rightclick = function(pos, node, clicker)
punch(pos) punch(pos)