Skip to content

Commit

Permalink
iii
Browse files Browse the repository at this point in the history
  • Loading branch information
kotmatross28729 committed Nov 18, 2024
1 parent d79029c commit fafc603
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/main/java/enviromine/core/EM_ConfigHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,11 @@ private static void loadGlobalConfig(File file)

EM_Settings.CCGasTurbineHeatDivisor = config.getFloat("68_CCGasTurbineHeatDivisor",CATEGORY_KOTMATROSS_FORK_CHANGES, EM_Settings.CCGasTurbineHeatDivisor, 1, 65536, "Divider value for temperature. The temperature itself depends on the specifics of the machine");

//MACHINES END


EM_Settings.enableItemPropsDivideByTwo = config.getBoolean("69_enableItemPropsDivideByTwo", CATEGORY_KOTMATROSS_FORK_CHANGES, EM_Settings.EnableHBMMachinesHeat, "If true, then divides ItemProperties \"Effect n\" parameters by 2, since for some reason they are applied 2 times. If your values specified in \"Effect n\" are not applied as they are, but are 2 times smaller, then disable this option (you may have some kind of bugfix mod installed)");


// --------------- //
// --- General --- //
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/enviromine/core/EM_Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public class EM_Settings




public static boolean enableItemPropsDivideByTwo = true;

public static boolean enablePhysics = false;
public static boolean enableLandslide = true;
Expand Down
16 changes: 12 additions & 4 deletions src/main/java/enviromine/trackers/properties/ItemProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,18 @@ public ItemProperties(String name, int meta, boolean enableTemp, float ambTemp,
this.ambAir = ambAir;
this.ambSanity = ambSanity;

this.effTemp = effTemp;
this.effAir = effAir;
this.effSanity = effSanity;
this.effHydration = effHydration;
//Double consuming
if(EM_Settings.enableItemPropsDivideByTwo) {
this.effTemp = effTemp/2F;
this.effAir = effAir/2F;
this.effSanity = effSanity/2F;
this.effHydration = effHydration/2F;
} else {
this.effTemp = effTemp;
this.effAir = effAir;
this.effSanity = effSanity;
this.effHydration = effHydration;
}

this.effTempCap = effTempCap;
this.camelFill = camelFill;
Expand Down

0 comments on commit fafc603

Please sign in to comment.