Make embedded cables into full block drawtypes for performance

This commit is contained in:
Zenon Seth 2024-03-12 10:29:17 +00:00
parent feb104ad27
commit 9fc02be2a0
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

@ -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 }
},