mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-12 08:17:29 +00:00
Removing unnessecary try/catch from thaumium tools; moving to item init.
This commit is contained in:
1 parent
6ea6f1e017
commit
dc4cd3331c
1 file changed
+6
-21
@@ -269,8 +269,7 @@ public class Config
|
||||
setupThaumcraftItems();
|
||||
setupFrames();
|
||||
setupJellyBaby();
|
||||
voidCapsule = new ItemCapsule(CapsuleType.VOID, capsuleStackSizeMax);
|
||||
setupThaumcraftTools();
|
||||
voidCapsule = new ItemCapsule(CapsuleType.VOID, capsuleStackSizeMax);
|
||||
moonDial = new ItemMoonDial();
|
||||
|
||||
setupNuggets();
|
||||
@@ -518,25 +517,11 @@ public class Config
|
||||
if (ThaumcraftHelper.isActive())
|
||||
{
|
||||
// Items
|
||||
}
|
||||
}
|
||||
|
||||
private void setupThaumcraftTools() {
|
||||
if (ThaumcraftHelper.isActive())
|
||||
{
|
||||
try
|
||||
{
|
||||
thaumiumScoop = new ItemThaumiumScoop();
|
||||
GameRegistry.registerItem(thaumiumScoop, thaumiumScoop.getUnlocalizedName(), CommonProxy.DOMAIN);
|
||||
|
||||
thaumiumGrafter = new ItemThaumiumGrafter();
|
||||
GameRegistry.registerItem(thaumiumGrafter, thaumiumGrafter.getUnlocalizedName(), CommonProxy.DOMAIN);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LogHelper.warn("Couldn't register Thaumium tools!");
|
||||
LogHelper.debug(e);
|
||||
}
|
||||
thaumiumScoop = new ItemThaumiumScoop();
|
||||
GameRegistry.registerItem(thaumiumScoop, thaumiumScoop.getUnlocalizedName(), CommonProxy.DOMAIN);
|
||||
|
||||
thaumiumGrafter = new ItemThaumiumGrafter();
|
||||
GameRegistry.registerItem(thaumiumGrafter, thaumiumGrafter.getUnlocalizedName(), CommonProxy.DOMAIN);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user