diff --git a/Change Log.txt b/Change Log.txt index 25508e6a..bb9baf5d 100644 --- a/Change Log.txt +++ b/Change Log.txt @@ -1,7 +1,14 @@ +######## 1.0.2d ######## +-added config option to disable all log output +-stopped potential console spam from chaos guardian. +-fixed draconic armor flight speed boost not being removed when the armor is removed. +-reduced potential FPS hit from the HUD. (may also fix some other random issues) + ######## 1.0.2c ######## -fixed shovels unable to harvest some blocks in AOE mode (Any block that requires a shovel but can not be harvested by hand) -added config blacklist for the Item Dislocator. -fixed armor still draining power when another mod cancels a damage event. +-removed some debug code that got left in last update. ######## 1.0.2b ######## -fixed not being able to close the flow gate gui's by pressing the inventory key. diff --git a/VERSION.txt b/VERSION.txt index fe48d50b..641419d5 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1,3 +1,3 @@ -Version:1.0.2c +Version:1.0.2d Snapshot:0 -ReleaseNote:Yup you guessed it more bugs... But nothing major. +ReleaseNote:Minor changes. diff --git a/build.properties b/build.properties index 8f67a002..1c3e5e6a 100644 --- a/build.properties +++ b/build.properties @@ -1,5 +1,5 @@ minecraft_version=1.7.10 -mod_version=1.0.2c +mod_version=1.0.2d forge_version=10.13.4.1614-1.7.10 CCLIB_version=1.1.3.140 NEI_version=1.0.3.74 diff --git a/src/main/java/com/brandon3055/draconicevolution/client/handler/HudHandler.java b/src/main/java/com/brandon3055/draconicevolution/client/handler/HudHandler.java index b8fb63e8..95b522c5 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/handler/HudHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/handler/HudHandler.java @@ -181,6 +181,8 @@ public class HudHandler { } ResourceHandler.bindTexture(ResourceHandler.getResourceWOP("minecraft:textures/gui/icons.png")); + GL11.glColor4f(1F, 1F, 1F, 1F); + GL11.glDisable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_ALPHA_TEST); GL11.glPopMatrix(); } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/handler/ConfigHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/handler/ConfigHandler.java index f50f2f8c..f5e0a5fe 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/handler/ConfigHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/handler/ConfigHandler.java @@ -46,6 +46,7 @@ public class ConfigHandler { public static boolean useOriginal3DArmorModel; public static boolean useOldD2DToolTextures; public static boolean disableGuardianCrystalRespawn; + public static boolean disableLog; private static String[] itemDislocatorBlacklist; public static Map itemDislocatorBlacklistMap = new HashMap(); @@ -120,6 +121,7 @@ public class ConfigHandler { useOriginal3DArmorModel = config.get(Configuration.CATEGORY_GENERAL, "Use the original 3D armor models", false, "If true the original 3D armor models created by Skeletonpunk will be used instead of the current ones").getBoolean(false); disableGuardianCrystalRespawn = config.get(Configuration.CATEGORY_GENERAL, "Disable Guardian Crystal Respawn", false, "(Wuss mode) Setting this to true will disable the chaos guardians ability to respawn healing crystals. Under certain circumstances such as on a Spigot server where entity render distance is significantly lower this may be required.").getBoolean(false); itemDislocatorBlacklist = config.getStringList("Item Dislocator Blacklist", Configuration.CATEGORY_GENERAL, new String[] {"appliedenergistics2:item.ItemCrystalSeed"}, "A list of items of items that should be ignored by the item dislocator. Use the items registry name e.g. minecraft:apple you can also add a meta value like so minecraft:wool|4"); + disableLog = config.get(Configuration.CATEGORY_GENERAL, "Disable Log", false, "If you are having issued with console spam that you cant fix setting this to true will disable all log output from Draconic Evolution (Not recommended)").getBoolean(false); //Spawner @@ -161,7 +163,17 @@ public class ConfigHandler { itemDislocatorBlacklistMap.put(s, -1); } } - } + + if (disableLog){ + disableLog = false; + LogHelper.warn("###########################################"); + LogHelper.warn("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"); + LogHelper.warn("WARNING Draconic Evolution Log is Disabled!"); + LogHelper.warn("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"); + LogHelper.warn("###########################################"); + disableLog = true; + } + } catch (Exception e) { LogHelper.error("Unable to load Config"); e.printStackTrace(); diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/armor/CustomArmorHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/items/armor/CustomArmorHandler.java index e7b7be9f..54869796 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/armor/CustomArmorHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/armor/CustomArmorHandler.java @@ -250,9 +250,12 @@ public class CustomArmorHandler { player.capabilities.isFlying = false; player.sendPlayerAbilities(); } - - if (player.worldObj.isRemote)setPlayerFlySpeed(player, 0.05F); } + + if (player.worldObj.isRemote && playersWithFlight.get(player)){ + playersWithFlight.put(player, false); + setPlayerFlySpeed(player, 0.05F); + } } //endregion diff --git a/src/main/java/com/brandon3055/draconicevolution/common/lib/VersionHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/lib/VersionHandler.java index 6a278c72..0ded6769 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/lib/VersionHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/lib/VersionHandler.java @@ -5,7 +5,7 @@ package com.brandon3055.draconicevolution.common.lib; */ public class VersionHandler { - public static final String VERSION = "1.0.2c"; + public static final String VERSION = "1.0.2d"; public static final int SNAPSHOT = 0; public static final String MCVERSION = "1.7.10"; diff --git a/src/main/java/com/brandon3055/draconicevolution/common/utills/DragonChunkLoader.java b/src/main/java/com/brandon3055/draconicevolution/common/utills/DragonChunkLoader.java index be497eae..d39c5ec9 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/utills/DragonChunkLoader.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/utills/DragonChunkLoader.java @@ -17,6 +17,7 @@ import java.util.*; public class DragonChunkLoader implements LoadingCallback { public static DragonChunkLoader instance; public static Map ticketList = new HashMap(); + public static boolean hasReportedIssue = false; public static void init(){ instance = new DragonChunkLoader(); @@ -38,9 +39,18 @@ public class DragonChunkLoader implements LoadingCallback { ticket.bindEntity(guardian); ticket.setChunkListDepth(9); ticketList.put(guardian, ticket); + } else { - LogHelper.error("Could not get ticket for dragon"); + if (!hasReportedIssue){ + LogHelper.error("##########################################################################################"); + LogHelper.error("Could not get ticket for dragon"); + LogHelper.error("Fore some reason forge has denied DE's request for a loader ticket for the chaos guardian"); + LogHelper.error("This means the chaos guardian may not behave as indented"); + LogHelper.error("This error will not show again."); + LogHelper.error("##########################################################################################"); + hasReportedIssue = true; + } return; } } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/utills/LogHelper.java b/src/main/java/com/brandon3055/draconicevolution/common/utills/LogHelper.java index 8258a0f6..69aab3ae 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/utills/LogHelper.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/utills/LogHelper.java @@ -1,5 +1,6 @@ package com.brandon3055.draconicevolution.common.utills; +import com.brandon3055.draconicevolution.common.handler.ConfigHandler; import com.brandon3055.draconicevolution.common.lib.References; import cpw.mods.fml.common.FMLLog; import org.apache.logging.log4j.Level; @@ -11,6 +12,9 @@ public class LogHelper { public static void log(Level logLevel, Object object) { + if (ConfigHandler.disableLog){ + return; + } FMLLog.log(References.MODNAME, logLevel, String.valueOf(object)); }