From 416868bafb83c69435c210bc41e467fa5e746342 Mon Sep 17 00:00:00 2001 From: Electroblob <35599699+Electroblob77@users.noreply.github.com> Date: Sat, 7 Apr 2018 00:08:43 +0100 Subject: [PATCH] More cleanup --- src/main/java/electroblob/wizardry/Wizardry.java | 6 +----- .../electroblob/wizardry/registry/WizardryRegistry.java | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/electroblob/wizardry/Wizardry.java b/src/main/java/electroblob/wizardry/Wizardry.java index 989e5df8..56f0dbd3 100644 --- a/src/main/java/electroblob/wizardry/Wizardry.java +++ b/src/main/java/electroblob/wizardry/Wizardry.java @@ -110,9 +110,6 @@ public class Wizardry { logger = event.getModLog(); - // The array in question no longer exists, so I'm pretty sure this isn't necessary any more. - // expandPotionTypesArray(); - settings.initConfig(event); // Yes - by the looks of it, having an interface is completely unnecessary in this case. @@ -192,8 +189,7 @@ public class Wizardry { } // 2.1 changed some item ids, so this fixes them for existing worlds - // NOTE: Needs changing to RegistryEvent.MissingMapping in 1.12, or just removing since nobody updates minecraft - // versions when using mods. + // Nobody updates minecraft versions when using mods, but I may as well leave this here just in case. @EventHandler public static void onMissingMappingEvent(RegistryEvent.MissingMappings event){ // Just get, not getAll, since the mod id didn't change! diff --git a/src/main/java/electroblob/wizardry/registry/WizardryRegistry.java b/src/main/java/electroblob/wizardry/registry/WizardryRegistry.java index a85a555f..bcf3fedf 100644 --- a/src/main/java/electroblob/wizardry/registry/WizardryRegistry.java +++ b/src/main/java/electroblob/wizardry/registry/WizardryRegistry.java @@ -256,6 +256,7 @@ public final class WizardryRegistry { /** Called from the init method in the main mod class to register all the recipes. */ @SubscribeEvent public static void registerRecipes(RegistryEvent.Register event){ + IForgeRegistry registry = event.getRegistry(); ItemStack magicCrystalStack = new ItemStack(WizardryItems.magic_crystal);