Skip to content

Commit 2e6bf9d

Browse files
committed
Assume EEIs are power producers.
1 parent 269c5a0 commit 2e6bf9d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Yafc.Parser/Data/FactorioDataDeserializer_Entity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ private void DeserializeEntity(LuaTable table, ErrorCollector errorCollector) {
435435
entity.size = table.Get("selection_box", out LuaTable? box) ? GetSize(box) : 3;
436436

437437
_ = table.Get("energy_source", out LuaTable? energySource);
438-
if (factorioType != "generator" && factorioType != "solar-panel" && factorioType != "accumulator" && factorioType != "burner-generator" && factorioType != "offshore-pump" && energySource != null) {
438+
if (factorioType != "generator" && factorioType != "solar-panel" && factorioType != "accumulator" && factorioType != "burner-generator" && factorioType != "offshore-pump" && factorioType != "electric-energy-interface" && energySource != null) {
439439
ReadEnergySource(energySource, entity, defaultDrain);
440440
}
441441

changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Version
1919
Date:
2020
Bugfixes:
2121
- Refuse to accept negative numbers in several places where they don't make sense.
22+
- Handle electric energy interfaces better (e.g. pY's fish turbines, Nullius's wind turbines) when used to
23+
generate power.
2224
Internal changes:
2325
- Refactor a lot of the drawing code to increase both UI consistency and consistency in being able to pass
2426
options to methods that should accept them.

0 commit comments

Comments
 (0)