Make embedded cables into full block drawtypes for performance
This commit is contained in:
parent
feb104ad27
commit
9fc02be2a0
@ -39,7 +39,7 @@ function logistica.register_cable(desc, name, customNodeBox, customTiles, custom
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
drawtype = "nodebox",
|
||||
drawtype = cnb.type or "nodebox",
|
||||
node_box = node_box,
|
||||
connects_to = { "group:" .. cable_group, logistica.GROUP_ALL, logistica.GROUP_CABLE_OFF },
|
||||
on_construct = function(pos) logistica.on_cable_change(pos) end,
|
||||
|
@ -31,6 +31,7 @@ logistica.register_cable("Optic Cable", "optic_cable")
|
||||
-- full-block cable
|
||||
logistica.register_cable("Embedded Optic Cable", "optic_cable_block",
|
||||
{
|
||||
type = "normal",
|
||||
fixed = {
|
||||
{ -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user