mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-16 10:34:53 +00:00
Fix greenhouse lang
This commit is contained in:
1 parent
5bd4ba3cd5
commit
b2d4e6eaba
4 files changed
+6
-5
No files matched your search
+1
-1
Submodule lang updated: 6cb4ff2684...d39f07201c.
@@ -20,7 +20,7 @@ public class GuiCamouflageSprayCan extends GuiForestry<ContainerCamouflageSprayC
|
||||
protected void drawGuiContainerBackgroundLayer(float f, int mouseX, int mouseY) {
|
||||
super.drawGuiContainerBackgroundLayer(f, mouseX, mouseY);
|
||||
|
||||
String name = Translator.translateToLocal("for.gui.camouflage.spray.can");
|
||||
String name = Translator.translateToLocal("for.gui.camouflage_spray_can");
|
||||
textLayout.line = 6;
|
||||
textLayout.drawCenteredLine(name, 0, ColourProperties.INSTANCE.get("gui.title"));
|
||||
bindTexture(textureFile);
|
||||
|
||||
@@ -43,6 +43,7 @@ import forestry.plugins.ForestryPlugin;
|
||||
import forestry.plugins.ForestryPluginUids;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.fml.common.SidedProxy;
|
||||
import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||
@@ -74,7 +75,7 @@ public class PluginGreenhouse extends BlankForestryPlugin {
|
||||
Preconditions.checkState(blocks != null);
|
||||
|
||||
Block greenhousePlainBlock = blocks.getGreenhouseBlock(BlockGreenhouseType.PLAIN);
|
||||
RecipeUtil.addRecipe(greenhousePlainBlock,
|
||||
RecipeUtil.addRecipe(new ItemStack(greenhousePlainBlock, 4),
|
||||
"###",
|
||||
"#X#",
|
||||
"###",
|
||||
@@ -82,7 +83,7 @@ public class PluginGreenhouse extends BlankForestryPlugin {
|
||||
'#', coreItems.craftingMaterial.getCamouflagedPaneling());
|
||||
|
||||
Block greenhouseGlassBlock = blocks.getGreenhouseBlock(BlockGreenhouseType.GLASS);
|
||||
RecipeUtil.addRecipe(greenhouseGlassBlock,
|
||||
RecipeUtil.addRecipe(new ItemStack(greenhouseGlassBlock, 4),
|
||||
"###",
|
||||
"#X#",
|
||||
"###",
|
||||
|
||||
@@ -33,7 +33,7 @@ public class ButterflySpawner implements ILeafTickHandler {
|
||||
|
||||
IButterfly spawn = ButterflyManager.butterflyRoot.getIndividualTemplates().get(rand.nextInt(ButterflyManager.butterflyRoot.getIndividualTemplates().size()));
|
||||
float rarity;
|
||||
if (PluginLepidopterology.spawnRaritys.containsKey(spawn.getGenome().getPrimary().getUID())) {
|
||||
if (!PluginLepidopterology.spawnRaritys.containsKey(spawn.getGenome().getPrimary().getUID())) {
|
||||
rarity = spawn.getGenome().getPrimary().getRarity();
|
||||
} else {
|
||||
rarity = PluginLepidopterology.spawnRaritys.get(spawn.getGenome().getPrimary().getUID());
|
||||
|
||||
Reference in new issue
Block a user