From a4edd87d61c2bc66494013ebef54518b8133b0d9 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sun, 24 Jan 2021 13:39:16 +0800 Subject: Add furnace lag fix. Use SemVer. BugFix: Entity Tracker spamming fix does not work in the previous versions. --- .../java/com/keuin/ohmyvanillamc/OhMyVanillaMinecraft.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/keuin/ohmyvanillamc/OhMyVanillaMinecraft.java') diff --git a/src/main/java/com/keuin/ohmyvanillamc/OhMyVanillaMinecraft.java b/src/main/java/com/keuin/ohmyvanillamc/OhMyVanillaMinecraft.java index e64708d..04cc62a 100644 --- a/src/main/java/com/keuin/ohmyvanillamc/OhMyVanillaMinecraft.java +++ b/src/main/java/com/keuin/ohmyvanillamc/OhMyVanillaMinecraft.java @@ -85,7 +85,7 @@ public class OhMyVanillaMinecraft implements ModInitializer { configuration = new OmvmConfiguration(defaultConfiguration); } - LOGGER.info("Configuration: \n==========\n" + configuration + "\n=========="); + LOGGER.info(getConfigurationString()); CommandRegistrationCallback.EVENT.register(new CommandRegistrationCallback() { @Override @@ -93,7 +93,7 @@ public class OhMyVanillaMinecraft implements ModInitializer { commandDispatcher.register(CommandManager.literal("omvm").executes(new Command() { @Override public int run(CommandContext context) throws CommandSyntaxException { - String text = "OhMyVanillaMinecraft\n==========\n" + getConfiguration() + "\n=========="; + String text = getConfigurationString(); context.getSource().sendFeedback(new LiteralText(text), false); return 1; // 1: success, -1: fail } @@ -131,6 +131,8 @@ public class OhMyVanillaMinecraft implements ModInitializer { @Override public int run(CommandContext context) throws CommandSyntaxException { try { + boolean previousFixSpamming = configuration.isFixEntityTrackerEntrySpamming(); + String key = context.getArgument("key", String.class); String value = context.getArgument("value", String.class); @@ -170,4 +172,10 @@ public class OhMyVanillaMinecraft implements ModInitializer { } + private String getConfigurationString() { + return "OhMyVanillaMinecraft\n==========\n" + configuration + "\n==========\n" + + "Force enabled tweaks:\n" + "Furnace fuel list lag fix\n" + "=========="; + } + + } -- cgit v1.2.3