summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/ohmyvanillamc/OhMyVanillaMinecraft.java
diff options
context:
space:
mode:
authorKeuin <[email protected]>2021-01-24 13:39:16 +0800
committerkeuin <[email protected]>2021-01-24 13:39:16 +0800
commita05313f031e2ca35759af58f82b3177e4bcfba8c (patch)
tree79643e1ef5068e2243695cb284263345488e850d /src/main/java/com/keuin/ohmyvanillamc/OhMyVanillaMinecraft.java
parent8b8a8ccbb1a0885911136e89e5c28df8a59563f6 (diff)
Add furnace lag fix. Use SemVer.
Diffstat (limited to 'src/main/java/com/keuin/ohmyvanillamc/OhMyVanillaMinecraft.java')
-rw-r--r--src/main/java/com/keuin/ohmyvanillamc/OhMyVanillaMinecraft.java12
1 files changed, 10 insertions, 2 deletions
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<ServerCommandSource>() {
@Override
public int run(CommandContext<ServerCommandSource> 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<ServerCommandSource> 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" + "==========";
+ }
+
+
}