@EventHandler public void serverStarting(FMLServerAboutToStartEvent event) { String clname = BotaniaAPI.internalHandler.getClass().getName(); String expect = "vazkii.botania.common.core.handler.InternalMethodHandler"; if(!clname.equals(expect)) { new IllegalAccessError("The Botania API internal method handler has been overriden. " + "This will cause crashes and compatibility issues, and that's why it's marked as" + " \"Do not Override\". Whoever had the brilliant idea of overriding it needs to go" + " back to elementary school and learn to read. (Expected classname: " + expect + ", Actual classname: " + clname + ")").printStackTrace(); FMLCommonHandler.instance().exitJava(1, true); } }
System.out.println("getTile: " + sumHandleEvent); new UnsupportedOperationException("This LP version isn't compatible with the installed MCMultipart version.").printStackTrace(); FMLCommonHandler.instance().exitJava(1, true);
System.out.println("renderTravelingItems: " + sumHandleEvent); new UnsupportedOperationException("This LP version isn't compatible with the installed TD version.").printStackTrace(); FMLCommonHandler.instance().exitJava(1, true);
System.out.println("writePacket: " + sumHandleEvent3); new UnsupportedOperationException("This LP version isn't compatible with the installed TD version.").printStackTrace(); FMLCommonHandler.instance().exitJava(1, true);
@SubscribeEvent(priority = EventPriority.LOWEST) public void onWorldLoad(final WorldEvent.Load e){ final WorldSavedDataASMTweaks data = WorldSavedDataASMTweaks.get(e.getWorld()); if(data.isWasntSaved()){ data.markDirty(); return; } final Set<String> savedTweaks = data.getTweaks(); final Set<String> currentTweaks = BiomeTweaker.getInstance().getEnabledTweaks(); if(savedTweaks.size() != currentTweaks.size() || Sets.intersection(savedTweaks, currentTweaks).size() != savedTweaks.size()){ final boolean cont = StartupQuery.confirm("WARNING\n\nBiomeTweaker has detected an inconsistency in enabled and saved tweaks.\n " + "This could cause unpredicatable world generation and possibly corruption.\n " + "Please ensure you did not change any BiomeTweakerCore configuration since\n" + "last loading this world. Proceed at your own risk.\n\n" + "Enabled: "+ currentTweaks.toString()+ "\n" + "Saved: " + savedTweaks.toString() + "\n\n" + "Continue anyway?"); if(!cont) FMLCommonHandler.instance().exitJava(1, false); else data.markDirty(); } }
VeinMiner.instance.logger.error("The above line number may be inexact."); VeinMiner.instance.logger.error("Asking java to exit"); FMLCommonHandler.instance().exitJava(1, false);
@Override protected void actionPerformed(GuiButton button) throws IOException { super.actionPerformed(button); switch(button.id) { case 1: // Import/Quit if(!needsRestart) { doImport(); if(needsRestart) { button.displayString = I18n.translateToLocal("quark.config.close"); for(GuiButton b : buttonList) if(b != button) b.enabled = false; } } else FMLCommonHandler.instance().exitJava(0, false); break; case 2: // Open Website tryOpenWebsite(LibMisc.MOD_WEBSITE); break; case 3: // Open Quark Website tryOpenWebsite(LibMisc.MOD_WEBSITE); break; } }