mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 07:35:47 +00:00
Add missing farm logic localisation
This commit is contained in:
1 parent
533c9d0b2a
commit
cd7250604e
37 files changed
+233
-160
No files matched your search
@@ -35,6 +35,7 @@ import forestry.api.farming.IFarmLogic;
|
||||
import forestry.api.farming.IFarmProperties;
|
||||
import forestry.api.farming.IFarmable;
|
||||
import forestry.api.farming.ISoil;
|
||||
import forestry.core.utils.Translator;
|
||||
import forestry.core.utils.VectUtil;
|
||||
|
||||
public abstract class FarmLogic implements IFarmLogic {
|
||||
@@ -55,6 +56,12 @@ public abstract class FarmLogic implements IFarmLogic {
|
||||
return properties.getSoils();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
String unformatted = isManual ? "for.farm.grammar.manual" : "for.farm.grammar.managed";
|
||||
return Translator.translateToLocalFormatted(unformatted, Translator.translateToLocal(getUnlocalizedName()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public FarmLogic setManual(boolean flag) {
|
||||
return this;
|
||||
|
||||
Reference in new issue
Block a user