Fix wall collision box going too deep
parent
0cb2c2eb8c
commit
a7953d526b
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue