Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| eb2317934f | |||
| 60537cda1b | |||
| 508ff2b776 |
@@ -38,7 +38,7 @@ public final class ModInfo
|
|||||||
public static final String NAME = "DistantHorizons";
|
public static final String NAME = "DistantHorizons";
|
||||||
/** Human-readable version of NAME */
|
/** Human-readable version of NAME */
|
||||||
public static final String READABLE_NAME = "Distant Horizons";
|
public static final String READABLE_NAME = "Distant Horizons";
|
||||||
public static final String VERSION = "2.4.4-b";
|
public static final String VERSION = "2.4.5-b";
|
||||||
/** Returns true if the current build is an unstable developer build, false otherwise. */
|
/** Returns true if the current build is an unstable developer build, false otherwise. */
|
||||||
public static final boolean IS_DEV_BUILD = VERSION.toLowerCase().contains("dev");
|
public static final boolean IS_DEV_BUILD = VERSION.toLowerCase().contains("dev");
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ import com.seibel.distanthorizons.api.enums.config.EDhApiMcRenderingFadeMode;
|
|||||||
import com.seibel.distanthorizons.api.enums.rendering.EDhApiRenderPass;
|
import com.seibel.distanthorizons.api.enums.rendering.EDhApiRenderPass;
|
||||||
import com.seibel.distanthorizons.api.methods.events.abstractEvents.*;
|
import com.seibel.distanthorizons.api.methods.events.abstractEvents.*;
|
||||||
import com.seibel.distanthorizons.core.api.internal.rendering.DhRenderState;
|
import com.seibel.distanthorizons.core.api.internal.rendering.DhRenderState;
|
||||||
|
import com.seibel.distanthorizons.core.enums.EMinecraftColor;
|
||||||
import com.seibel.distanthorizons.core.file.structure.ClientOnlySaveStructure;
|
import com.seibel.distanthorizons.core.file.structure.ClientOnlySaveStructure;
|
||||||
import com.seibel.distanthorizons.core.logging.DhLoggerBuilder;
|
import com.seibel.distanthorizons.core.logging.DhLoggerBuilder;
|
||||||
import com.seibel.distanthorizons.core.network.messages.MessageRegistry;
|
import com.seibel.distanthorizons.core.network.messages.MessageRegistry;
|
||||||
@@ -152,10 +153,10 @@ public class ClientApi
|
|||||||
|
|
||||||
if (Config.Common.Logging.Warning.showReplayWarningOnStartup.get())
|
if (Config.Common.Logging.Warning.showReplayWarningOnStartup.get())
|
||||||
{
|
{
|
||||||
MC_CLIENT.sendChatMessage("\u00A76" + "Distant Horizons: Replay detected." + "\u00A7r"); // gold color
|
MC_CLIENT.sendChatMessage(EMinecraftColor.ORANGE + "Distant Horizons: Replay detected." + EMinecraftColor.CLEAR_FORMATTING);
|
||||||
MC_CLIENT.sendChatMessage("DH may behave strangely or have missing functionality.");
|
MC_CLIENT.sendChatMessage("DH may behave strangely or have missing functionality.");
|
||||||
MC_CLIENT.sendChatMessage("In order to use pre-generated LODs, put your DH database(s) in:");
|
MC_CLIENT.sendChatMessage("In order to use pre-generated LODs, put your DH database(s) in:");
|
||||||
MC_CLIENT.sendChatMessage("\u00A77"+".Minecraft" + File.separator + ClientOnlySaveStructure.SERVER_DATA_FOLDER_NAME + File.separator + ClientOnlySaveStructure.REPLAY_SERVER_FOLDER_NAME + File.separator + "DIMENSION_NAME"+"\u00A7r"); // light gray color
|
MC_CLIENT.sendChatMessage(EMinecraftColor.GRAY +".Minecraft" + File.separator + ClientOnlySaveStructure.SERVER_DATA_FOLDER_NAME + File.separator + ClientOnlySaveStructure.REPLAY_SERVER_FOLDER_NAME + File.separator + "DIMENSION_NAME"+EMinecraftColor.CLEAR_FORMATTING);
|
||||||
MC_CLIENT.sendChatMessage("This can be disabled in DH's config under Advanced -> Logging.");
|
MC_CLIENT.sendChatMessage("This can be disabled in DH's config under Advanced -> Logging.");
|
||||||
MC_CLIENT.sendChatMessage("");
|
MC_CLIENT.sendChatMessage("");
|
||||||
}
|
}
|
||||||
@@ -507,10 +508,10 @@ public class ClientApi
|
|||||||
this.rendererDisabledBecauseOfExceptions = true;
|
this.rendererDisabledBecauseOfExceptions = true;
|
||||||
LOGGER.error("Unexpected Renderer error in render pass [" + renderPass + "]. Error: " + e.getMessage(), e);
|
LOGGER.error("Unexpected Renderer error in render pass [" + renderPass + "]. Error: " + e.getMessage(), e);
|
||||||
|
|
||||||
MC_CLIENT.sendChatMessage("\u00A74\u00A7l\u00A7uERROR: Distant Horizons renderer has encountered an exception!");
|
MC_CLIENT.sendChatMessage(EMinecraftColor.DARK_RED + "" + EMinecraftColor.BOLD + "ERROR: Distant Horizons renderer has encountered an exception!" + EMinecraftColor.CLEAR_FORMATTING);
|
||||||
MC_CLIENT.sendChatMessage("\u00A74Renderer disabled to try preventing GL state corruption.");
|
MC_CLIENT.sendChatMessage(EMinecraftColor.DARK_RED + "Renderer disabled to try preventing GL state corruption." + EMinecraftColor.CLEAR_FORMATTING);
|
||||||
MC_CLIENT.sendChatMessage("\u00A74Toggle DH rendering via the config UI to re-activate DH rendering.");
|
MC_CLIENT.sendChatMessage(EMinecraftColor.DARK_RED + "Toggle DH rendering via the config UI to re-activate DH rendering." + EMinecraftColor.CLEAR_FORMATTING);
|
||||||
MC_CLIENT.sendChatMessage("\u00A74Error: " + e);
|
MC_CLIENT.sendChatMessage(EMinecraftColor.DARK_RED + "Error: " + EMinecraftColor.CLEAR_FORMATTING + e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -655,8 +656,7 @@ public class ClientApi
|
|||||||
|
|
||||||
// remind the user that this is a development build
|
// remind the user that this is a development build
|
||||||
String message =
|
String message =
|
||||||
// green text
|
EMinecraftColor.DARK_GREEN + "Distant Horizons: nightly/unstable build, version: [" + ModInfo.VERSION+"]." +EMinecraftColor.CLEAR_FORMATTING + "\n" +
|
||||||
"\u00A72" + "Distant Horizons: nightly/unstable build, version: [" + ModInfo.VERSION+"]." + "\u00A7r\n" +
|
|
||||||
"Issues may occur with this version.\n" +
|
"Issues may occur with this version.\n" +
|
||||||
"Here be dragons!\n";
|
"Here be dragons!\n";
|
||||||
MC_CLIENT.sendChatMessage(message);
|
MC_CLIENT.sendChatMessage(message);
|
||||||
@@ -680,7 +680,7 @@ public class ClientApi
|
|||||||
{
|
{
|
||||||
String message =
|
String message =
|
||||||
// orange text
|
// orange text
|
||||||
"\u00A76" + "Distant Horizons: Low memory detected." + "\u00A7r \n" +
|
EMinecraftColor.ORANGE + "Distant Horizons: Low memory detected." + EMinecraftColor.CLEAR_FORMATTING + "\n" +
|
||||||
"Stuttering or low FPS may occur. \n" +
|
"Stuttering or low FPS may occur. \n" +
|
||||||
"Please increase Minecraft's available memory to 4 GB or more. \n" +
|
"Please increase Minecraft's available memory to 4 GB or more. \n" +
|
||||||
"This warning can be disabled in DH's config under Advanced -> Logging. \n";
|
"This warning can be disabled in DH's config under Advanced -> Logging. \n";
|
||||||
@@ -702,15 +702,13 @@ public class ClientApi
|
|||||||
this.lastStaticWarningMessageSentMsTime = System.currentTimeMillis();
|
this.lastStaticWarningMessageSentMsTime = System.currentTimeMillis();
|
||||||
|
|
||||||
String message =
|
String message =
|
||||||
// yellow text
|
EMinecraftColor.YELLOW + "Distant Horizons: High vanilla render distance detected." + EMinecraftColor.CLEAR_FORMATTING + "\n" +
|
||||||
"\u00A7e" + "Distant Horizons: High vanilla render distance detected." + "\u00A7r \n" +
|
"Using a high vanilla render distance uses a lot of CPU power \n" +
|
||||||
"Using a high vanilla render distance uses a lot of CPU power \n" +
|
"and doesn't improve graphics much after about 12.\n" +
|
||||||
"and doesn't improve graphics much after about 12.\n" +
|
"Lowing your vanilla render distance will give you better FPS\n" +
|
||||||
"Lowing your vanilla render distance will give you better FPS\n" +
|
"and reduce stuttering at a similar visual quality.\n" +
|
||||||
"and reduce stuttering at a similar visual quality.\n" +
|
EMinecraftColor.GRAY + "A vanilla render distance of 8 is recommended." + EMinecraftColor.CLEAR_FORMATTING + "\n" +
|
||||||
// gray text
|
"This message can be disabled in DH's config under Advanced -> Logging.\n";
|
||||||
"\u00A77" + "A vanilla render distance of 8 is recommended." + "\u00A7r \n" +
|
|
||||||
"This message can be disabled in DH's config under Advanced -> Logging.\n";
|
|
||||||
MC_CLIENT.sendChatMessage(message);
|
MC_CLIENT.sendChatMessage(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -2,6 +2,7 @@ package com.seibel.distanthorizons.core.api.internal.chunkUpdating;
|
|||||||
|
|
||||||
import com.seibel.distanthorizons.core.api.internal.SharedApi;
|
import com.seibel.distanthorizons.core.api.internal.SharedApi;
|
||||||
import com.seibel.distanthorizons.core.pos.DhChunkPos;
|
import com.seibel.distanthorizons.core.pos.DhChunkPos;
|
||||||
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
@@ -105,6 +106,7 @@ public class ChunkPosQueue
|
|||||||
this.furthestQueue.remove(closest);
|
this.furthestQueue.remove(closest);
|
||||||
return this.updateDataByChunkPos.remove(closest);
|
return this.updateDataByChunkPos.remove(closest);
|
||||||
}
|
}
|
||||||
|
@Nullable
|
||||||
public ChunkUpdateData popFurthest()
|
public ChunkUpdateData popFurthest()
|
||||||
{
|
{
|
||||||
if (this.furthestQueue.isEmpty())
|
if (this.furthestQueue.isEmpty())
|
||||||
|
|||||||
+6
-2
@@ -5,6 +5,7 @@ import com.google.common.cache.CacheBuilder;
|
|||||||
import com.seibel.distanthorizons.core.api.internal.ClientApi;
|
import com.seibel.distanthorizons.core.api.internal.ClientApi;
|
||||||
import com.seibel.distanthorizons.core.api.internal.SharedApi;
|
import com.seibel.distanthorizons.core.api.internal.SharedApi;
|
||||||
import com.seibel.distanthorizons.core.config.Config;
|
import com.seibel.distanthorizons.core.config.Config;
|
||||||
|
import com.seibel.distanthorizons.core.enums.EMinecraftColor;
|
||||||
import com.seibel.distanthorizons.core.logging.DhLoggerBuilder;
|
import com.seibel.distanthorizons.core.logging.DhLoggerBuilder;
|
||||||
import com.seibel.distanthorizons.core.multiplayer.client.SyncOnLoadRequestQueue;
|
import com.seibel.distanthorizons.core.multiplayer.client.SyncOnLoadRequestQueue;
|
||||||
import com.seibel.distanthorizons.core.pos.DhChunkPos;
|
import com.seibel.distanthorizons.core.pos.DhChunkPos;
|
||||||
@@ -94,7 +95,10 @@ public class ChunkUpdateQueueManager
|
|||||||
if (remainingSlots <= 0)
|
if (remainingSlots <= 0)
|
||||||
{
|
{
|
||||||
ChunkUpdateData removedData = queue.popFurthest();
|
ChunkUpdateData removedData = queue.popFurthest();
|
||||||
this.queuedChunkWrapperByChunkPos.remove(removedData.chunkWrapper.getChunkPos());
|
if (removedData != null)
|
||||||
|
{
|
||||||
|
this.queuedChunkWrapperByChunkPos.remove(removedData.chunkWrapper.getChunkPos());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
queue.addItem(pos,updateData);
|
queue.addItem(pos,updateData);
|
||||||
@@ -116,7 +120,7 @@ public class ChunkUpdateQueueManager
|
|||||||
{
|
{
|
||||||
lastOverloadedLogMessageMsTime = System.currentTimeMillis();
|
lastOverloadedLogMessageMsTime = System.currentTimeMillis();
|
||||||
|
|
||||||
String message = "\u00A76" + "Distant Horizons overloaded, too many chunks queued for LOD processing. " + "\u00A7r" +
|
String message = EMinecraftColor.ORANGE + "Distant Horizons overloaded, too many chunks queued for LOD processing. " + EMinecraftColor.CLEAR_FORMATTING +
|
||||||
"\nThis may result in holes in your LODs. " +
|
"\nThis may result in holes in your LODs. " +
|
||||||
"\nFix: move through the world slower, decrease your vanilla render distance, slow down your world pre-generator (IE Chunky), or increase the Distant Horizons' CPU thread counts. " +
|
"\nFix: move through the world slower, decrease your vanilla render distance, slow down your world pre-generator (IE Chunky), or increase the Distant Horizons' CPU thread counts. " +
|
||||||
"\nMax queue count [" + SharedApi.CHUNK_UPDATE_QUEUE_MANAGER.maxSize + "] ([" + SharedApi.MAX_UPDATING_CHUNK_COUNT_PER_THREAD_AND_PLAYER + "] per thread+players).";
|
"\nMax queue count [" + SharedApi.CHUNK_UPDATE_QUEUE_MANAGER.maxSize + "] ([" + SharedApi.MAX_UPDATING_CHUNK_COUNT_PER_THREAD_AND_PLAYER + "] per thread+players).";
|
||||||
|
|||||||
@@ -1,12 +1,47 @@
|
|||||||
package com.seibel.distanthorizons.core.enums;
|
package com.seibel.distanthorizons.core.enums;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO
|
|
||||||
* might be deprecated in the future? in that case we'll probably want a wrapper
|
* might be deprecated in the future? in that case we'll probably want a wrapper
|
||||||
* function to handle colors for new MC versions
|
* function to handle colors for new MC versions
|
||||||
*
|
* <br><br>
|
||||||
* source: https://minecraft.wiki/w/Formatting_codes
|
* source: https://minecraft.wiki/w/Formatting_codes
|
||||||
*/
|
*/
|
||||||
public class EMinecraftColor
|
public enum EMinecraftColor // TODO EMinecraftTextFormat
|
||||||
{
|
{
|
||||||
|
BLACK("\u00A70"),
|
||||||
|
DARK_BLUE("\u00A71"),
|
||||||
|
DARK_GREEN("\u00A72"),
|
||||||
|
DARK_AQUA("\u00A73"),
|
||||||
|
DARK_RED("\u00A74"),
|
||||||
|
DARK_PURPLE("\u00A75"),
|
||||||
|
ORANGE("\u00A76"),
|
||||||
|
GRAY("\u00A77"),
|
||||||
|
DARK_GRAY("\u00A78"),
|
||||||
|
BLUE("\u00A79"),
|
||||||
|
GREEN("\u00A7a"),
|
||||||
|
AQUA("\u00A7b"),
|
||||||
|
RED("\u00A7c"),
|
||||||
|
LIGHT_PURPLE("\u00A7d"),
|
||||||
|
YELLOW("\u00A7e"),
|
||||||
|
WHITE("\u00A7f"),
|
||||||
|
|
||||||
|
OBFUSCATED("\u00A7k"),
|
||||||
|
BOLD("\u00A7l"),
|
||||||
|
STRIKETHROUGH("\u00A7m"),
|
||||||
|
UNDERLINE("\u00A7n"),
|
||||||
|
ITALIC("\u00A7o"),
|
||||||
|
CLEAR_FORMATTING("\u00A7r");
|
||||||
|
|
||||||
|
public final String colorCode;
|
||||||
|
|
||||||
|
EMinecraftColor(String colorCode)
|
||||||
|
{
|
||||||
|
this.colorCode = colorCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() { return this.colorCode; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ import com.seibel.distanthorizons.core.config.Config;
|
|||||||
import com.seibel.distanthorizons.core.config.listeners.IConfigListener;
|
import com.seibel.distanthorizons.core.config.listeners.IConfigListener;
|
||||||
import com.seibel.distanthorizons.core.config.types.ConfigEntry;
|
import com.seibel.distanthorizons.core.config.types.ConfigEntry;
|
||||||
import com.seibel.distanthorizons.core.dependencyInjection.SingletonInjector;
|
import com.seibel.distanthorizons.core.dependencyInjection.SingletonInjector;
|
||||||
|
import com.seibel.distanthorizons.core.enums.EMinecraftColor;
|
||||||
import com.seibel.distanthorizons.core.util.ThreadUtil;
|
import com.seibel.distanthorizons.core.util.ThreadUtil;
|
||||||
import com.seibel.distanthorizons.core.wrapperInterfaces.minecraft.IMinecraftClientWrapper;
|
import com.seibel.distanthorizons.core.wrapperInterfaces.minecraft.IMinecraftClientWrapper;
|
||||||
import com.seibel.distanthorizons.coreapi.ModInfo;
|
import com.seibel.distanthorizons.coreapi.ModInfo;
|
||||||
@@ -302,32 +303,32 @@ public class DhLogger implements IConfigListener
|
|||||||
String prefix = "[" + ModInfo.READABLE_NAME + "] ";
|
String prefix = "[" + ModInfo.READABLE_NAME + "] ";
|
||||||
if (logLevel == Level.ERROR)
|
if (logLevel == Level.ERROR)
|
||||||
{
|
{
|
||||||
prefix += "\u00A74";
|
prefix += EMinecraftColor.DARK_RED;
|
||||||
}
|
}
|
||||||
else if (logLevel == Level.WARN)
|
else if (logLevel == Level.WARN)
|
||||||
{
|
{
|
||||||
prefix += "\u00A76";
|
prefix += EMinecraftColor.ORANGE;
|
||||||
}
|
}
|
||||||
else if (logLevel == Level.INFO)
|
else if (logLevel == Level.INFO)
|
||||||
{
|
{
|
||||||
prefix += "\u00A7f";
|
prefix += EMinecraftColor.AQUA;
|
||||||
}
|
}
|
||||||
else if (logLevel == Level.DEBUG)
|
else if (logLevel == Level.DEBUG)
|
||||||
{
|
{
|
||||||
prefix += "\u00A77";
|
prefix += EMinecraftColor.GREEN;
|
||||||
}
|
}
|
||||||
else if (logLevel == Level.TRACE)
|
else if (logLevel == Level.TRACE)
|
||||||
{
|
{
|
||||||
prefix += "\u00A78";
|
prefix += EMinecraftColor.DARK_GRAY;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
prefix += "\u00A7f";
|
prefix += EMinecraftColor.WHITE;
|
||||||
}
|
}
|
||||||
|
|
||||||
prefix += "\u00A7l\u00A7u";
|
prefix += EMinecraftColor.BOLD + "" + EMinecraftColor.WHITE;
|
||||||
prefix += logLevel.name();
|
prefix += logLevel.name();
|
||||||
prefix += ":\u00A7r ";
|
prefix += EMinecraftColor.CLEAR_FORMATTING + " ";
|
||||||
|
|
||||||
mc_client.sendChatMessage(prefix + message);
|
mc_client.sendChatMessage(prefix + message);
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -2,6 +2,7 @@ package com.seibel.distanthorizons.core.pooling;
|
|||||||
|
|
||||||
import com.seibel.distanthorizons.core.api.internal.ClientApi;
|
import com.seibel.distanthorizons.core.api.internal.ClientApi;
|
||||||
import com.seibel.distanthorizons.core.config.Config;
|
import com.seibel.distanthorizons.core.config.Config;
|
||||||
|
import com.seibel.distanthorizons.core.enums.EMinecraftColor;
|
||||||
import com.seibel.distanthorizons.core.logging.DhLogger;
|
import com.seibel.distanthorizons.core.logging.DhLogger;
|
||||||
import com.seibel.distanthorizons.core.logging.DhLoggerBuilder;
|
import com.seibel.distanthorizons.core.logging.DhLoggerBuilder;
|
||||||
import com.seibel.distanthorizons.core.logging.f3.F3Screen;
|
import com.seibel.distanthorizons.core.logging.f3.F3Screen;
|
||||||
@@ -178,8 +179,7 @@ public class PhantomArrayListPool
|
|||||||
{
|
{
|
||||||
lowMemoryWarningLogged = true;
|
lowMemoryWarningLogged = true;
|
||||||
|
|
||||||
// orange text
|
String message = EMinecraftColor.ORANGE + "Distant Horizons: Insufficient memory detected." + EMinecraftColor.CLEAR_FORMATTING + "\n" +
|
||||||
String message = "\u00A76" + "Distant Horizons: Insufficient memory detected." + "\u00A7r \n" +
|
|
||||||
"This may cause stuttering or crashing. \n" +
|
"This may cause stuttering or crashing. \n" +
|
||||||
"Potential causes: \n" +
|
"Potential causes: \n" +
|
||||||
"1. your allocated memory isn't high enough \n" +
|
"1. your allocated memory isn't high enough \n" +
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
package com.seibel.distanthorizons.core.world;
|
package com.seibel.distanthorizons.core.world;
|
||||||
|
|
||||||
import com.seibel.distanthorizons.core.api.internal.ClientApi;
|
import com.seibel.distanthorizons.core.api.internal.ClientApi;
|
||||||
|
import com.seibel.distanthorizons.core.enums.EMinecraftColor;
|
||||||
import com.seibel.distanthorizons.core.level.DhClientServerLevel;
|
import com.seibel.distanthorizons.core.level.DhClientServerLevel;
|
||||||
import com.seibel.distanthorizons.core.util.TimerUtil;
|
import com.seibel.distanthorizons.core.util.TimerUtil;
|
||||||
import com.seibel.distanthorizons.core.util.LodUtil;
|
import com.seibel.distanthorizons.core.util.LodUtil;
|
||||||
@@ -82,7 +83,7 @@ public class DhClientServerWorld extends AbstractDhServerWorld<DhClientServerLev
|
|||||||
LOGGER.fatal("Failed to load client-server level, error: ["+e.getMessage()+"].", e);
|
LOGGER.fatal("Failed to load client-server level, error: ["+e.getMessage()+"].", e);
|
||||||
|
|
||||||
ClientApi.INSTANCE.showChatMessageNextFrame(// red text
|
ClientApi.INSTANCE.showChatMessageNextFrame(// red text
|
||||||
"\u00A7c" + "Distant Horizons: ClientServer level loading failed." + "\u00A7r \n" +
|
EMinecraftColor.RED + "Distant Horizons: ClientServer level loading failed." + EMinecraftColor.CLEAR_FORMATTING + "\n" +
|
||||||
"Unable to load level ["+levelWrapper.getDhIdentifier()+"], LODs may not appear. See log for more information.");
|
"Unable to load level ["+levelWrapper.getDhIdentifier()+"], LODs may not appear. See log for more information.");
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
package com.seibel.distanthorizons.core.world;
|
package com.seibel.distanthorizons.core.world;
|
||||||
|
|
||||||
import com.seibel.distanthorizons.core.api.internal.ClientApi;
|
import com.seibel.distanthorizons.core.api.internal.ClientApi;
|
||||||
|
import com.seibel.distanthorizons.core.enums.EMinecraftColor;
|
||||||
import com.seibel.distanthorizons.core.file.structure.ClientOnlySaveStructure;
|
import com.seibel.distanthorizons.core.file.structure.ClientOnlySaveStructure;
|
||||||
import com.seibel.distanthorizons.core.level.DhClientLevel;
|
import com.seibel.distanthorizons.core.level.DhClientLevel;
|
||||||
import com.seibel.distanthorizons.core.level.IDhLevel;
|
import com.seibel.distanthorizons.core.level.IDhLevel;
|
||||||
@@ -94,9 +95,9 @@ public class DhClientWorld extends AbstractDhWorld implements IDhClientWorld
|
|||||||
{
|
{
|
||||||
LOGGER.fatal("Failed to load client level, error: ["+e.getMessage()+"].", e);
|
LOGGER.fatal("Failed to load client level, error: ["+e.getMessage()+"].", e);
|
||||||
|
|
||||||
ClientApi.INSTANCE.showChatMessageNextFrame(// red text
|
ClientApi.INSTANCE.showChatMessageNextFrame(
|
||||||
"\u00A7c" + "Distant Horizons: Client level loading failed." + "\u00A7r \n" +
|
EMinecraftColor.RED + "Distant Horizons: Client level loading failed." + EMinecraftColor.CLEAR_FORMATTING + "\n" +
|
||||||
"Unable to load level ["+clientLevelWrapper.getDhIdentifier()+"], LODs may not appear. See log for more information.");
|
"Unable to load level ["+clientLevelWrapper.getDhIdentifier()+"], LODs may not appear. See log for more information.");
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
package com.seibel.distanthorizons.core.world;
|
package com.seibel.distanthorizons.core.world;
|
||||||
|
|
||||||
import com.seibel.distanthorizons.core.api.internal.ClientApi;
|
import com.seibel.distanthorizons.core.api.internal.ClientApi;
|
||||||
|
import com.seibel.distanthorizons.core.enums.EMinecraftColor;
|
||||||
import com.seibel.distanthorizons.core.level.DhServerLevel;
|
import com.seibel.distanthorizons.core.level.DhServerLevel;
|
||||||
import com.seibel.distanthorizons.core.wrapperInterfaces.world.ILevelWrapper;
|
import com.seibel.distanthorizons.core.wrapperInterfaces.world.ILevelWrapper;
|
||||||
import com.seibel.distanthorizons.core.wrapperInterfaces.world.IServerLevelWrapper;
|
import com.seibel.distanthorizons.core.wrapperInterfaces.world.IServerLevelWrapper;
|
||||||
@@ -62,9 +63,9 @@ public class DhServerWorld extends AbstractDhServerWorld<DhServerLevel>
|
|||||||
{
|
{
|
||||||
LOGGER.fatal("Failed to load server level, error: ["+e.getMessage()+"].", e);
|
LOGGER.fatal("Failed to load server level, error: ["+e.getMessage()+"].", e);
|
||||||
|
|
||||||
ClientApi.INSTANCE.showChatMessageNextFrame(// red text
|
ClientApi.INSTANCE.showChatMessageNextFrame(
|
||||||
"\u00A7c" + "Distant Horizons: Server level loading failed." + "\u00A7r \n" +
|
EMinecraftColor.RED + "Distant Horizons: Server level loading failed." + EMinecraftColor.CLEAR_FORMATTING + "\n" +
|
||||||
"Unable to load level ["+serverLevelWrapper.getDhIdentifier()+"], LODs may not appear. See log for more information.");
|
"Unable to load level ["+serverLevelWrapper.getDhIdentifier()+"], LODs may not appear. See log for more information.");
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user