Skip to content

Commit

Permalink
Fix void entity energy
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowTheAge committed Jul 25, 2021
1 parent 740ac3a commit cc5df62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions YAFCparser/Data/FactorioDataDeserializer_Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ private void ReadEnergySource(LuaTable energySource, Entity entity)
{
energySource.Get("type", out string type, "burner");
if (type == "void")
{
entity.energy = voidEntityEnergy;
return;
}
var energy = new EntityEnergy();
entity.energy = energy;
energy.emissions = energySource.Get("emissions_per_minute", 0f);
Expand Down

0 comments on commit cc5df62

Please sign in to comment.