Code: Select all
--- @type data.ElectricEnergyInterfacePrototype
local power_entity = {
-- PrototypeBase
type = 'electric-energy-interface',
name = 'my-thing',
hidden = true,
hidden_in_factoriopedia = true,
-- ElectricEnergyInterfacePrototype
---@type data.ElectricEnergySource
energy_source = {
type = 'electric',
usage_priority = 'secondary-input',
},
energy_usage = '2kW',
gui_mode = 'none',
picture = util.empty_sprite(),
-- EntityWithHealthPrototype
max_health = 1,
-- EntityPrototype
collision_box = { { -0.01, -0.01 }, { 0.01, 0.01 } },
collision_mask = collision_mask_util.new_mask(),
selection_box = { { -1, -1 }, { 1, 1 } },
flags = {
'placeable-off-grid',
'not-on-map',
'not-deconstructable',
'hide-alt-info',
'not-selectable-in-game',
'not-upgradable',
'no-automated-item-removal',
'no-automated-item-insertion',
'not-in-kill-statistics',
'not-rotatable',
'no-copy-paste',
},
minable = nil,
allow_copy_paste = false,
selectable_in_game = false,
selection_priority = 1,
}If I cut power to it, then it turns on the red triangle ("low power") or the yellow triangle ("No power"). However, any entity around it that I inspect either reports "defines.entity_status.no_power" or "defines.entity_status.low_power". Except this entity above. It always reports "working".
what am I missing? It looks like a bug to me.


