mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-08-10 17:55:44 +00:00
speedrun
This commit is contained in:
parent
4c8b9cc365
commit
3d4e50cd33
@ -1,3 +1,10 @@
|
||||
## Changed
|
||||
* Updated chinese localization
|
||||
* Watz powerplant now has OC and RoR integration
|
||||
* The automatic thresher now has a fluid port on the bottom as well
|
||||
* The foundry basins and outlet filters now use the properly translated name instead of the internal name for the material
|
||||
|
||||
## Fixed
|
||||
* Fixed AUTOCAL's number comparison functions not working with variable substitution as advertised
|
||||
* Fixed broken thorium ore centrifuging recipe shown in NEI
|
||||
* Fixed industrial turbine not properly saving its energy values, causing the flywheel to stop on relog
|
||||
@ -202,7 +202,7 @@ public abstract class FoundryCastingBase extends BlockContainer implements ICruc
|
||||
}
|
||||
|
||||
if(cast.type != null && cast.amount > 0) {
|
||||
text.add(EnumChatFormatting.YELLOW + cast.type.names[0] + ": " + cast.amount + " / " + cast.getCapacity());
|
||||
text.add(EnumChatFormatting.YELLOW + cast.type.getLocalizedName() + ": " + cast.amount + " / " + cast.getCapacity());
|
||||
}
|
||||
|
||||
ILookOverlay.printGeneric(event, I18nUtil.resolveKey(this.getUnlocalizedName() + ".name"), 0xFF4000, 0x401000, text);
|
||||
|
||||
@ -204,7 +204,7 @@ public class FoundryOutlet extends BlockContainer implements ICrucibleAcceptor,
|
||||
List<String> text = new ArrayList();
|
||||
|
||||
if(outlet.filter != null) {
|
||||
text.add(EnumChatFormatting.YELLOW + I18nUtil.resolveKey("foundry.filter", outlet.filter.names[0]));
|
||||
text.add(EnumChatFormatting.YELLOW + I18nUtil.resolveKey("foundry.filter", outlet.filter.getLocalizedName()));
|
||||
}
|
||||
if(outlet.invertFilter) {
|
||||
text.add(EnumChatFormatting.YELLOW + I18nUtil.resolveKey("foundry.invertFilter"));
|
||||
|
||||
@ -5,6 +5,7 @@ import java.util.Locale;
|
||||
import java.util.Set;
|
||||
|
||||
import com.hbm.inventory.OreDictManager.DictFrame;
|
||||
import com.hbm.util.i18n.I18nUtil;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@ -50,6 +51,10 @@ public class NTMMaterial {
|
||||
return "hbmmat." + this.names[0].toLowerCase(Locale.US);
|
||||
}
|
||||
|
||||
public String getLocalizedName() {
|
||||
return I18nUtil.resolveKey(getUnlocalizedName());
|
||||
}
|
||||
|
||||
public NTMMaterial setConversion(NTMMaterial mat, int in, int out) {
|
||||
this.smeltsInto = mat;
|
||||
this.convIn = in;
|
||||
|
||||
@ -14,12 +14,10 @@ import com.hbm.config.GeneralConfig;
|
||||
import com.hbm.handler.imc.IMCCentrifuge;
|
||||
import static com.hbm.inventory.OreDictManager.*;
|
||||
import com.hbm.inventory.OreDictManager.DictFrame;
|
||||
import com.hbm.inventory.OreDictManager;
|
||||
import com.hbm.inventory.RecipesCommon;
|
||||
import com.hbm.inventory.RecipesCommon.AStack;
|
||||
import com.hbm.inventory.RecipesCommon.ComparableStack;
|
||||
import com.hbm.inventory.RecipesCommon.OreDictStack;
|
||||
import com.hbm.inventory.material.MaterialShapes;
|
||||
import com.hbm.inventory.recipes.loader.SerializableRecipe;
|
||||
import com.hbm.items.ItemEnums;
|
||||
import com.hbm.items.ItemEnums.EnumAshType;
|
||||
@ -131,7 +129,7 @@ public class CentrifugeRecipes extends SerializableRecipe {
|
||||
new ItemStack(ModItems.nugget_solinium, 1),
|
||||
new ItemStack(Blocks.gravel, 1) });
|
||||
|
||||
recipes.put(new OreDictStack("oreRareEarth"), new ItemStack[] {
|
||||
recipes.put(new OreDictStack(RAREEARTH.ore()), new ItemStack[] {
|
||||
new ItemStack(ModItems.powder_desh_mix, 1),
|
||||
new ItemStack(ModItems.nugget_zirconium, 1),
|
||||
new ItemStack(ModItems.nugget_zirconium, 1),
|
||||
@ -149,7 +147,7 @@ public class CentrifugeRecipes extends SerializableRecipe {
|
||||
lbs ? new ItemStack(ModItems.nugget_ra226, 2) : new ItemStack(ModItems.nugget_ra226, 1),
|
||||
new ItemStack(Blocks.gravel, 1) });
|
||||
|
||||
for(String ore : OreDictManager.TH232.all(MaterialShapes.ORE)) recipes.put(new OreDictStack(ore), new ItemStack[] {
|
||||
recipes.put(new OreDictStack(TH232.ore()), new ItemStack[] {
|
||||
new ItemStack(ModItems.powder_thorium, 1),
|
||||
new ItemStack(ModItems.powder_thorium, 1),
|
||||
new ItemStack(ModItems.powder_uranium, 1),
|
||||
|
||||
@ -180,10 +180,10 @@ public class ParseMSES1 implements IParse {
|
||||
|
||||
// greater than buffer
|
||||
if(lower.startsWith("gtb ")) {
|
||||
if(line.length() <= 3 || ctx.buffer.isEmpty()) return EnumStatementReturn.PARAMETER_ERROR;
|
||||
if(line.length() <= 4 || ctx.buffer.isEmpty()) return EnumStatementReturn.PARAMETER_ERROR;
|
||||
try {
|
||||
double buffer = Double.parseDouble(ctx.buffer);
|
||||
double val = Double.parseDouble(line.substring(3));
|
||||
double val = Double.parseDouble(substitute(ctx, line.substring(4), false));
|
||||
ctx.buffer = val > buffer ? "true" : "false";
|
||||
} catch(Exception ex) { return EnumStatementReturn.PARAMETER_ERROR; }
|
||||
return EnumStatementReturn.OK;
|
||||
@ -191,10 +191,10 @@ public class ParseMSES1 implements IParse {
|
||||
|
||||
// lower than buffer
|
||||
if(lower.startsWith("ltb ")) {
|
||||
if(line.length() <= 3 || ctx.buffer.isEmpty()) return EnumStatementReturn.PARAMETER_ERROR;
|
||||
if(line.length() <= 4 || ctx.buffer.isEmpty()) return EnumStatementReturn.PARAMETER_ERROR;
|
||||
try {
|
||||
double buffer = Double.parseDouble(ctx.buffer);
|
||||
double val = Double.parseDouble(line.substring(3));
|
||||
double val = Double.parseDouble(substitute(ctx, line.substring(4), false));
|
||||
ctx.buffer = val < buffer ? "true" : "false";
|
||||
} catch(Exception ex) { return EnumStatementReturn.PARAMETER_ERROR; }
|
||||
return EnumStatementReturn.OK;
|
||||
@ -202,10 +202,10 @@ public class ParseMSES1 implements IParse {
|
||||
|
||||
// greater than or equal buffer
|
||||
if(lower.startsWith("geb ")) {
|
||||
if(line.length() <= 3 || ctx.buffer.isEmpty()) return EnumStatementReturn.PARAMETER_ERROR;
|
||||
if(line.length() <= 4 || ctx.buffer.isEmpty()) return EnumStatementReturn.PARAMETER_ERROR;
|
||||
try {
|
||||
double buffer = Double.parseDouble(ctx.buffer);
|
||||
double val = Double.parseDouble(line.substring(3));
|
||||
double val = Double.parseDouble(substitute(ctx, line.substring(4), false));
|
||||
ctx.buffer = val >= buffer ? "true" : "false";
|
||||
} catch(Exception ex) { return EnumStatementReturn.PARAMETER_ERROR; }
|
||||
return EnumStatementReturn.OK;
|
||||
@ -213,10 +213,10 @@ public class ParseMSES1 implements IParse {
|
||||
|
||||
// lower than or equal buffer
|
||||
if(lower.startsWith("leb ")) {
|
||||
if(line.length() <= 3 || ctx.buffer.isEmpty()) return EnumStatementReturn.PARAMETER_ERROR;
|
||||
if(line.length() <= 4 || ctx.buffer.isEmpty()) return EnumStatementReturn.PARAMETER_ERROR;
|
||||
try {
|
||||
double buffer = Double.parseDouble(ctx.buffer);
|
||||
double val = Double.parseDouble(line.substring(3));
|
||||
double val = Double.parseDouble(substitute(ctx, line.substring(4), false));
|
||||
ctx.buffer = val <= buffer ? "true" : "false";
|
||||
} catch(Exception ex) { return EnumStatementReturn.PARAMETER_ERROR; }
|
||||
return EnumStatementReturn.OK;
|
||||
|
||||
@ -183,6 +183,8 @@ public class TileEntityMachineIndustrialTurbine extends TileEntityTurbineBase im
|
||||
public void readFromNBT(NBTTagCompound nbt) {
|
||||
super.readFromNBT(nbt);
|
||||
lastPowerTarget = nbt.getLong("lastPowerTarget");
|
||||
flywheel_energy = nbt.getLong("flywheel_energy");
|
||||
maxPower = nbt.getLong("maxPower");
|
||||
spin = nbt.getDouble("spin");
|
||||
}
|
||||
|
||||
@ -190,6 +192,8 @@ public class TileEntityMachineIndustrialTurbine extends TileEntityTurbineBase im
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setLong("lastPowerTarget", lastPowerTarget);
|
||||
nbt.setLong("flywheel_energy", flywheel_energy);
|
||||
nbt.setLong("maxPower", maxPower);
|
||||
nbt.setDouble("spin", spin);
|
||||
}
|
||||
|
||||
|
||||
@ -9,6 +9,7 @@ import com.hbm.handler.threading.PacketThreading;
|
||||
import com.hbm.inventory.fluid.Fluids;
|
||||
import com.hbm.inventory.fluid.tank.FluidTank;
|
||||
import com.hbm.items.ModItems;
|
||||
import com.hbm.lib.Library;
|
||||
import com.hbm.lib.ModDamageSource;
|
||||
import com.hbm.main.MainRegistry;
|
||||
import com.hbm.main.NTMSounds;
|
||||
@ -85,6 +86,7 @@ public class TileEntityMachineThresher extends TileEntityLoadedBase implements I
|
||||
|
||||
trySubscribe(tank.getTankType(), worldObj, xCoord + rot.offsetX, yCoord, zCoord + rot.offsetZ, rot);
|
||||
trySubscribe(tank.getTankType(), worldObj, xCoord - rot.offsetX, yCoord, zCoord - rot.offsetZ, rot.getOpposite());
|
||||
trySubscribe(tank.getTankType(), worldObj, xCoord, yCoord - 1, zCoord, Library.NEG_Y);
|
||||
}
|
||||
|
||||
if(isOn && !isSuspended) {
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.7 KiB |
Loading…
x
Reference in New Issue
Block a user