Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
phidiasandCopilot committed 2026-04-28 13:33:58 +09:00
1 parent c08148d210
commit 8025110e7b
2 files changed
+3 -7

No files matched your search

+1 -5
View File
@@ -145,14 +145,10 @@ end
for _, v in pairs(data.raw['inserter']) do
if v.energy_source and v.energy_source.type and (v.energy_source.type == 'electric' or v.energy_source.type == 'void' or v.energy_source.type == 'burner') then
v.allow_custom_vectors = true
v.flags = {'placeable-neutral', 'placeable-player', 'player-creation', 'building-direction-8-way'}
v.flags = {'placeable-neutral', 'placeable-player', 'player-creation', ((v.hand_size and v.hand_size < 1) and 'building-direction-8-way') or 'building-direction-16-way'}
end
end
if data.raw['inserter']['long-handed-inserter'] and data.raw['inserter']['long-handed-inserter'].allow_custom_vectors then
data.raw['inserter']['long-handed-inserter'].flags = {'placeable-neutral', 'placeable-player', 'player-creation', 'building-direction-16-way'}
end
if mods['elevated-rails'] then
local entity = table.deepcopy(data.raw['electric-pole']['big-electric-pole'])
entity.name = 'rail-support-pole-electric'