fix fluidstack memory overflow
This commit is contained in:
parent
ef10c47d76
commit
66427b2178
3 changed files with 3 additions and 1 deletions
|
@ -819,6 +819,7 @@ public class GT_Mod
|
||||||
GT_OreDictUnificator.setStack(tOutput);
|
GT_OreDictUnificator.setStack(tOutput);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
GregTech_API.mServerStarted = true;
|
||||||
GT_Log.out.println("GT_Mod: ServerStarting-Phase finished!");
|
GT_Log.out.println("GT_Mod: ServerStarting-Phase finished!");
|
||||||
GT_Log.ore.println("GT_Mod: ServerStarting-Phase finished!");
|
GT_Log.ore.println("GT_Mod: ServerStarting-Phase finished!");
|
||||||
for (Runnable tRunnable : GregTech_API.sAfterGTServerstart) {
|
for (Runnable tRunnable : GregTech_API.sAfterGTServerstart) {
|
||||||
|
|
|
@ -187,6 +187,7 @@ public class GregTech_API {
|
||||||
public static int mEUtoRF = 360;
|
public static int mEUtoRF = 360;
|
||||||
public static int mRFtoEU = 20;
|
public static int mRFtoEU = 20;
|
||||||
public static boolean mRFExplosions = true;
|
public static boolean mRFExplosions = true;
|
||||||
|
public static boolean mServerStarted = false;
|
||||||
/**
|
/**
|
||||||
* Getting assigned by the Mod loading
|
* Getting assigned by the Mod loading
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -22,7 +22,7 @@ public class GT_FluidStack extends FluidStack {
|
||||||
public GT_FluidStack(Fluid aFluid, int aAmount) {
|
public GT_FluidStack(Fluid aFluid, int aAmount) {
|
||||||
super(aFluid, aAmount);
|
super(aFluid, aAmount);
|
||||||
mFluid = aFluid;
|
mFluid = aFluid;
|
||||||
sAllFluidStacks.add(this);
|
if(!GregTech_API.mServerStarted){sAllFluidStacks.add(this);}
|
||||||
}
|
}
|
||||||
|
|
||||||
public GT_FluidStack(FluidStack aFluid) {
|
public GT_FluidStack(FluidStack aFluid) {
|
||||||
|
|
Loading…
Reference in a new issue