Fix Ks Shunting Signal collision box
This commit is contained in:
parent
852e2f4219
commit
fcfe21f197
|
@ -210,6 +210,8 @@ for _, rtab in ipairs({
|
||||||
danger = {asp = { main = false, shunt = false }, n = "shuntd", ici=true},
|
danger = {asp = { main = false, shunt = false }, n = "shuntd", ici=true},
|
||||||
shuntd = {asp = { main = false, shunt = true } , n = "danger"},
|
shuntd = {asp = { main = false, shunt = true } , n = "danger"},
|
||||||
}) do
|
}) do
|
||||||
|
local sbox = table.copy(rtab.sbox)
|
||||||
|
sbox[5] = 0
|
||||||
minetest.register_node("advtrains_signals_ks:ra_"..typ.."_"..rot, {
|
minetest.register_node("advtrains_signals_ks:ra_"..typ.."_"..rot, {
|
||||||
description = "Ks Shunting Signal",
|
description = "Ks Shunting Signal",
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
|
@ -223,7 +225,11 @@ for _, rtab in ipairs({
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-1/4, -1/2, -1/4, 1/4, 0, 1/4}
|
fixed = {sbox, rotation_sbox}
|
||||||
|
},
|
||||||
|
collision_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = sbox,
|
||||||
},
|
},
|
||||||
groups = {
|
groups = {
|
||||||
cracky = 2,
|
cracky = 2,
|
||||||
|
|
Loading…
Reference in New Issue