Skip to content

Commit c0a2b7b

Browse files
committed
cooking asset flow catagory bugfix
1 parent 48fbadb commit c0a2b7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

_alp/Classes/Class.J_EAConsumption.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ public J_EAConsumption(Agent parentAgent, OL_EnergyAssetType type, String name,
3535
profilePointer = profile;
3636
}
3737
this.activeConsumptionEnergyCarriers.add(this.energyCarrier);
38-
if (this.energyCarrier == OL_EnergyCarriers.ELECTRICITY) {
38+
if (this.energyAssetType == OL_EnergyAssetType.ELECTRIC_HOB) {
39+
this.assetFlowCategory = OL_AssetFlowCategories.electricHobConsumption_kW; //
40+
}
41+
else if (this.energyCarrier == OL_EnergyCarriers.ELECTRICITY) {
3942
this.assetFlowCategory = OL_AssetFlowCategories.fixedConsumptionElectric_kW; //
4043
}
4144
registerEnergyAsset();

0 commit comments

Comments
 (0)