1
0
Fork 0

Fix wall collision box going too deep

This commit is contained in:
Wuzzy 2017-01-17 02:10:29 +01:00
parent 0cb2c2eb8c
commit a7953d526b
1 changed files with 4 additions and 4 deletions

View File

@ -105,7 +105,7 @@ local function register_wall(nodename, name, texture, invtex)
minetest.register_node(nodename.."_"..i, { minetest.register_node(nodename.."_"..i, {
collision_box = { collision_box = {
type = 'fixed', type = 'fixed',
fixed = {-4/16, -1, -4/16, 4/16, 1, 4/16} fixed = {-4/16, -0.5, -4/16, 4/16, 1, 4/16}
}, },
drawtype = "nodebox", drawtype = "nodebox",
is_ground_content = false, is_ground_content = false,
@ -125,7 +125,7 @@ local function register_wall(nodename, name, texture, invtex)
drawtype = "nodebox", drawtype = "nodebox",
collision_box = { collision_box = {
type = 'fixed', type = 'fixed',
fixed = {-4/16, -1, -4/16, 4/16, 1, 4/16} fixed = {-4/16, -0.5, -4/16, 4/16, 1, 4/16}
}, },
tiles = {texture}, tiles = {texture},
paramtype = "light", paramtype = "light",
@ -143,7 +143,7 @@ local function register_wall(nodename, name, texture, invtex)
drawtype = "nodebox", drawtype = "nodebox",
collision_box = { collision_box = {
type = 'fixed', type = 'fixed',
fixed = {-4/16, -1, -4/16, 4/16, 1, 4/16} fixed = {-4/16, -0.5, -4/16, 4/16, 1, 4/16}
}, },
tiles = {texture}, tiles = {texture},
paramtype = "light", paramtype = "light",
@ -172,7 +172,7 @@ local function register_wall(nodename, name, texture, invtex)
}, },
collision_box = { collision_box = {
type = 'fixed', type = 'fixed',
fixed = {-4/16, -1, -4/16, 4/16, 1, 4/16} fixed = {-4/16, -0.5, -4/16, 4/16, 1, 4/16}
}, },
collisionbox = {-0.2, 0, -0.2, 0.2, 1.4, 0.2}, collisionbox = {-0.2, 0, -0.2, 0.2, 1.4, 0.2},
on_construct = update_wall, on_construct = update_wall,