Posted January 4, 201510 yr Since updating to 1.7.10 my mod has been experiencing extreme lag making enjoyable game play impossible. Icompile the mod, during the compilation the batch points to my mod class with this warning. warning: [options] bootstrap class not set in conjunction with -source of 1.6 Note:\build\sources\java\src\IVWeather\IVWeather.java uses or overrideds a deprecated api ;as the program suggests i run with --debug as expected it didn't help at all. this is my mod class package src.IVWeather; import java.io.File; import src.IVWeather.block.BlockFlyingBlock; import src.IVWeather.block.BlockRushingWater; import src.IVWeather.entity.EntityFlyingBlock; import src.IVWeather.item.ItemDEV; import src.IVWeather.item.ItemDEV2; import src.IVWeather.sideWorldHandlers.HandlererOfAirmasses; import src.IVWeather.sideWorldHandlers.WorldAirmassSpawnHandler; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.world.World; import net.minecraftforge.common.config.Configuration; import net.minecraftforge.fluids.Fluid; import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.registry.EntityRegistry; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = IVWeather.MODID, version = IVWeather.VERSION) public class IVWeather { public static final String MODID = "Invention_Craft_Weather"; public static final String VERSION = "alpha 1.0"; public static Item ItemTest1; public static Item ItemTest2; World world; public File file = new File("IV_Craft/config/config.cfg"); public static boolean configFlag; public static int WeatherPatternMaxD; public static boolean Seasonalchanges; public static boolean Fluc; public static int startCycle; @EventHandler public void init(FMLInitializationEvent event) { world.MAX_ENTITY_RADIUS = 300; Fluid fluid = new Fluid("fluid"); final Block brw = new BlockRushingWater(fluid, Material.water).setBlockName("BlockRushingWater").setBlockTextureName(IVWeather.MODID + ":" + "BlockRushingWater").setCreativeTab(CreativeTabs.tabMisc); LanguageRegistry.instance().addStringLocalization("FloodWater", "Flood_Waters"); Material mat = Material.air; Block block = null; final Block bfb = new BlockFlyingBlock(mat, block, 0).setBlockName("FlyingBlock"); LanguageRegistry.instance().addStringLocalization("FlyingBlock", "flyingblock"); ItemTest1 = new ItemDEV().setCreativeTab(CreativeTabs.tabMisc); ItemTest2 = new ItemDEV2().setCreativeTab(CreativeTabs.tabMisc); EntityRegistry.registerGlobalEntityID(EntityFlyingBlock.class, "Regional_Airmass", EntityRegistry.findGlobalUniqueEntityId()); EntityRegistry.registerGlobalEntityID(EntityFlyingBlock.class, "flying!", EntityRegistry.findGlobalUniqueEntityId()); GameRegistry.registerItem(ItemTest1, "Development_Test_Flying_Block"); GameRegistry.registerItem(ItemTest2, "Development_Test_Flying_Block2"); GameRegistry.registerBlock(bfb, "FlyingBlock"); GameRegistry.registerBlock(brw, "FloodWater"); FMLCommonHandler.instance().bus().register(new WorldAirmassSpawnHandler()); //setting up config Configuration config = new Configuration(file); config.load(); WeatherPatternMaxD = config.get("daysInCycle", "days", 10).getInt(); this.Seasonalchanges = config.get(config.CATEGORY_GENERAL,"DoYouWantEternalSummerorWinter?", false).getBoolean(false); this.Fluc = config.get(config.CATEGORY_GENERAL, "wouldYouLikeFlucuationInYourCycles?", false).getBoolean(false); this.startCycle = config.get("CycleNumberStart(1 being warm cycle, 2 being cold)", "cycle", 1).getInt(); config.save(); } } [\spoiler] Thank you,
January 4, 201510 yr Author I am using the latest forge 1.7.10 version, now at least but the problem persists
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.