mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 03:49:07 +00:00
Fix Farm Circuit Dictionary localisation
This commit is contained in:
1 parent
cf8634546c
commit
18f30c8c0d
3 files changed
+8
-19
No files matched your search
@@ -25,25 +25,13 @@ public class CircuitGarden extends BinnieCircuit {
|
||||
super(getName(moisture, ph, manual, fertilised), 4, getLayout(manual), recipe);
|
||||
this.isManual = manual;
|
||||
this.logic = new GardenLogic(moisture, ph, this.isManual, fertilised, icon, I18N.localise(this.getUnlocalizedName()));
|
||||
StringBuilder info = new StringBuilder("Flowers (")
|
||||
.append(TextFormatting.GRAY.toString())
|
||||
.append(I18N.localise("botany.moisture"))
|
||||
.append(": ")
|
||||
.append(moisture.getLocalisedName(true));
|
||||
|
||||
if (ph != null) {
|
||||
info.append(TextFormatting.GRAY.toString())
|
||||
.append(", ")
|
||||
.append(I18N.localise("botany.ph"))
|
||||
.append(": ")
|
||||
.append(ph.getLocalisedName(true));
|
||||
String info = I18N.localise("botany.moisture") + ": " + moisture.getLocalisedName(true);
|
||||
if(ph != null){
|
||||
info+= TextFormatting.GRAY + ", " + I18N.localise("botany.ph") + ": " + moisture.getLocalisedName(true);
|
||||
}
|
||||
String fertilizedKey = fertilised ? "for.binnie.circuit.garden.fertilized" : "for.binnie.circuit.garden.unfertilized";
|
||||
info.append(TextFormatting.RESET.toString())
|
||||
.append(" ")
|
||||
.append(I18N.localise(fertilizedKey))
|
||||
.append(")");
|
||||
this.addTooltipString(info.toString());
|
||||
info+= TextFormatting.GRAY + " " + I18N.localise(fertilizedKey);
|
||||
this.addTooltipString(I18N.localise("for.binnie.circuit.garden.info", info));
|
||||
}
|
||||
|
||||
private static ICircuitLayout getLayout(boolean manual) {
|
||||
|
||||
@@ -8,7 +8,7 @@ import binnie.core.util.I18N;
|
||||
enum EnumTubeInsulate {
|
||||
Clay(0xa1aacc, "clay"),
|
||||
Cobble(0x7b7b7b, "cobblestone"),
|
||||
Sand(0xefeab5, "sand"),
|
||||
Sand(0xefeab5, "sandstone"),
|
||||
HardenedClay(0x935c43, "hardened_clay"),
|
||||
Stone(0x6d6d6d, "stone"),
|
||||
Sandstone(0xc1b989, "sandstone");
|
||||
|
||||
Reference in new issue
Block a user