diff --git a/com/hbm/handler/AlloyFurnaceRecipeHandler.java b/com/hbm/handler/AlloyFurnaceRecipeHandler.java index 26c791970..9cbb12b2b 100644 --- a/com/hbm/handler/AlloyFurnaceRecipeHandler.java +++ b/com/hbm/handler/AlloyFurnaceRecipeHandler.java @@ -75,7 +75,7 @@ public class AlloyFurnaceRecipeHandler extends TemplateRecipeHandler { } public void loadCraftingRecipes(String outputId, Object... results) { - if ((outputId.equals("alloysmelting")) && (getClass() == AlloyFurnaceRecipeHandler.class)) { + if ((outputId.equals("alloysmelting")) && getClass() == AlloyFurnaceRecipeHandler.class) { Map recipes = MachineRecipes.instance().getAlloyRecipes(); for (Map.Entry recipe : recipes.entrySet()) { this.arecipes.add(new SmeltingSet((ItemStack)recipe.getKey()[0], (ItemStack)recipe.getKey()[1], (ItemStack)recipe.getValue())); @@ -94,7 +94,7 @@ public class AlloyFurnaceRecipeHandler extends TemplateRecipeHandler { } public void loadUsageRecipes(String inputId, Object... ingredients) { - if ((inputId.equals("alloysmelting"))&& (getClass() == AlloyFurnaceRecipeHandler.class)) { + if ((inputId.equals("alloysmelting")) && getClass() == AlloyFurnaceRecipeHandler.class) { loadCraftingRecipes("alloysmelting", new Object[0]); } else { super.loadUsageRecipes(inputId, ingredients); diff --git a/com/hbm/handler/CentrifugeRecipeHandler.java b/com/hbm/handler/CentrifugeRecipeHandler.java index baf9ed1ca..f2902f36f 100644 --- a/com/hbm/handler/CentrifugeRecipeHandler.java +++ b/com/hbm/handler/CentrifugeRecipeHandler.java @@ -14,6 +14,7 @@ import com.hbm.handler.AlloyFurnaceRecipeHandler.SmeltingSet; import codechicken.nei.NEIServerUtils; import codechicken.nei.PositionedStack; +import codechicken.nei.recipe.FurnaceRecipeHandler; import codechicken.nei.recipe.TemplateRecipeHandler; import codechicken.nei.recipe.TemplateRecipeHandler.RecipeTransferRect; import net.minecraft.client.gui.inventory.GuiContainer; @@ -95,7 +96,7 @@ public class CentrifugeRecipeHandler extends TemplateRecipeHandler { } public void loadCraftingRecipes(String outputId, Object... results) { - if ((outputId.equals("centrifugeprocessing")) && (getClass() == CentrifugeRecipeHandler.class)) { + if ((outputId.equals("centrifugeprocessing")) && getClass() == CentrifugeRecipeHandler.class) { Map recipes = MachineRecipes.instance().getCentrifugeRecipes(); for (Map.Entry recipe : recipes.entrySet()) { this.arecipes.add(new SmeltingSet((ItemStack)recipe.getKey(), (ItemStack)recipe.getValue()[0], (ItemStack)recipe.getValue()[1], (ItemStack)recipe.getValue()[2], (ItemStack)recipe.getValue()[3])); @@ -114,7 +115,7 @@ public class CentrifugeRecipeHandler extends TemplateRecipeHandler { } public void loadUsageRecipes(String inputId, Object... ingredients) { - if ((inputId.equals("centrifugeprocessing"))&& (getClass() == CentrifugeRecipeHandler.class)) { + if ((inputId.equals("centrifugeprocessing")) && getClass() == CentrifugeRecipeHandler.class) { loadCraftingRecipes("centrifugeprocessing", new Object[0]); } else { super.loadUsageRecipes(inputId, ingredients); diff --git a/com/hbm/handler/ReactorRecipeHandler.java b/com/hbm/handler/ReactorRecipeHandler.java index a243f7b2c..25a6434f7 100644 --- a/com/hbm/handler/ReactorRecipeHandler.java +++ b/com/hbm/handler/ReactorRecipeHandler.java @@ -16,6 +16,7 @@ import codechicken.nei.NEIServerUtils; import codechicken.nei.PositionedStack; import codechicken.nei.api.IOverlayHandler; import codechicken.nei.api.IRecipeOverlayRenderer; +import codechicken.nei.recipe.FurnaceRecipeHandler; import codechicken.nei.recipe.GuiRecipe; import codechicken.nei.recipe.ICraftingHandler; import codechicken.nei.recipe.TemplateRecipeHandler; @@ -73,7 +74,7 @@ public class ReactorRecipeHandler extends TemplateRecipeHandler { } public void loadCraftingRecipes(String outputId, Object... results) { - if ((outputId.equals("breeding")) && (getClass() == ReactorRecipeHandler.class)) { + if ((outputId.equals("breeding")) && getClass() == ReactorRecipeHandler.class) { Map recipes = MachineRecipes.instance().getReactorRecipes(); for (Map.Entry recipe : recipes.entrySet()) { this.arecipes.add(new SmeltingSet((ItemStack)recipe.getKey(), (ItemStack)recipe.getValue())); @@ -92,7 +93,7 @@ public class ReactorRecipeHandler extends TemplateRecipeHandler { } public void loadUsageRecipes(String inputId, Object... ingredients) { - if ((inputId.equals("breeding"))&& (getClass() == ReactorRecipeHandler.class)) { + if ((inputId.equals("breeding")) && getClass() == ReactorRecipeHandler.class) { loadCraftingRecipes("breeding", new Object[0]); } else { super.loadUsageRecipes(inputId, ingredients); diff --git a/com/hbm/lib/RefStrings.java b/com/hbm/lib/RefStrings.java index fd1c55fda..3b98d6252 100644 --- a/com/hbm/lib/RefStrings.java +++ b/com/hbm/lib/RefStrings.java @@ -3,7 +3,7 @@ package com.hbm.lib; public class RefStrings { public static final String MODID = "hbm"; public static final String NAME = "Hbm's Nuclear Tech Mod"; - public static final String VERSION = "1.0.18"; + public static final String VERSION = "1.0.19"; public static final String CLIENTSIDE = "com.hbm.main.ClientProxy"; public static final String SERVERSIDE = "com.hbm.main.ServerProxy"; } diff --git a/com/hbm/main/ModEventHandler.java b/com/hbm/main/ModEventHandler.java index 885c7ee59..a2519a6bc 100644 --- a/com/hbm/main/ModEventHandler.java +++ b/com/hbm/main/ModEventHandler.java @@ -1,15 +1,23 @@ package com.hbm.main; +import com.hbm.lib.RefStrings; + +import cpw.mods.fml.common.eventhandler.SubscribeEvent; +import cpw.mods.fml.common.gameevent.PlayerEvent; +import net.minecraft.client.Minecraft; +import net.minecraft.util.ChatComponentText; + public class ModEventHandler { - // Achievements - /*@SubscribeEvent - public void whenTitaniumSmeleted(PlayerEvent.ItemSmeltedEvent e) - { - if (e.smelting.getItem().equals(ModItems.ingot_titanium)) - { - e.player.addStat(MainRegistry.achievementGetTitanium, 1); - } - }*/ - + public static boolean showMessage = true; + + @SubscribeEvent + public void onPlayerLogin(PlayerEvent.PlayerLoggedInEvent event) { + if(showMessage) + { + event.player.addChatMessage(new ChatComponentText("Loaded world with Hbm's Nuclear Tech Mod " + RefStrings.VERSION + " for Minecraft 1.7.10!")); + } + + showMessage = !showMessage; + } }