This commit is contained in:
brandon committed 2016-05-03 09:15:50 +10:00
1 parent e078911077
commit 3943000ccb
9 files changed
+46 -8

No files matched your search

@@ -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();
}
@@ -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<String, Integer> itemDislocatorBlacklistMap = new HashMap<String, Integer>();
@@ -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();
@@ -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
@@ -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";
@@ -17,6 +17,7 @@ import java.util.*;
public class DragonChunkLoader implements LoadingCallback {
public static DragonChunkLoader instance;
public static Map<EntityChaosGuardian, Ticket> ticketList = new HashMap<EntityChaosGuardian, Ticket>();
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;
}
}
@@ -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));
}