Add name change easter egg when running on snapshots
This commit is contained in:
parent
941331f90a
commit
41c2bb733e
|
|
@ -1,5 +1,6 @@
|
|||
package org.embeddedt.modernfix;
|
||||
|
||||
import net.minecraft.SharedConstants;
|
||||
import net.minecraft.Util;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.server.level.ChunkMap;
|
||||
|
|
@ -24,6 +25,8 @@ public class ModernFix {
|
|||
|
||||
public static final String MODID = "modernfix";
|
||||
|
||||
public static String NAME = "ModernFix";
|
||||
|
||||
public static ModernFix INSTANCE;
|
||||
|
||||
// Used to skip computing the blockstate caches twice
|
||||
|
|
@ -46,6 +49,8 @@ public class ModernFix {
|
|||
|
||||
public ModernFix() {
|
||||
INSTANCE = this;
|
||||
if(ModernFixMixinPlugin.instance.isOptionEnabled("feature.snapshot_easter_egg.NameChange") && !SharedConstants.getCurrentVersion().isStable())
|
||||
NAME = "PreemptiveFix";
|
||||
ModernFixPlatformHooks.onServerCommandRegister(ModernFixCommands::register);
|
||||
if(ModernFixMixinPlugin.instance.isOptionEnabled("feature.spam_thread_dump.ThreadDumper")) {
|
||||
Thread t = new Thread() {
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public class ModernFixClient {
|
|||
// clear reserve as it's not needed
|
||||
Minecraft.reserve = new byte[0];
|
||||
if(ModernFixMixinPlugin.instance.isOptionEnabled("feature.branding.F3Screen")) {
|
||||
brandingString = "ModernFix " + ModernFixPlatformHooks.getVersionString();
|
||||
brandingString = ModernFix.NAME + " " + ModernFixPlatformHooks.getVersionString();
|
||||
}
|
||||
for(String className : ModernFixPlatformHooks.getCustomModOptions().get(IntegrationConstants.CLIENT_INTEGRATION_CLASS)) {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -152,6 +152,7 @@ public class ModernFixEarlyConfig {
|
|||
.put("mixin.feature.integrated_server_watchdog", true)
|
||||
.put("mixin.perf.faster_item_rendering", false)
|
||||
.put("mixin.feature.spam_thread_dump", false)
|
||||
.put("mixin.feature.snapshot_easter_egg", true)
|
||||
.put("mixin.perf.blast_search_trees", shouldReplaceSearchTrees)
|
||||
.put("mixin.devenv", isDevEnv)
|
||||
.put("mixin.perf.remove_spawn_chunks", isDevEnv)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user