Browse Source

Added missing togglefps command;

umollu 5 years ago
parent
commit
9aab969779
2 changed files with 12 additions and 4 deletions
  1. 4 4
      gradle.properties
  2. 8 0
      src/main/java/com/umollu/ash/AshCommands.java

+ 4 - 4
gradle.properties

@@ -3,16 +3,16 @@ org.gradle.jvmargs=-Xmx1G
 
 # Fabric Properties
 	# check these on https://fabricmc.net/use
-	minecraft_version=20w18a
-	yarn_mappings=20w18a+build.14
+	minecraft_version=20w19a
+	yarn_mappings=20w19a+build.6
 	loader_version=0.8.2+build.194
 
 # Mod Properties
-	mod_version = 1.1.4
+	mod_version = 1.1.6
 	maven_group = com.umollu
 	archives_base_name = ash
 
 # Dependencies
 	# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric
-	fabric_version=0.10.3+build.338-1.16
+	fabric_version=0.10.7+build.344-1.16
 	clientcommands_version=1.0.0+1.15.2

+ 8 - 0
src/main/java/com/umollu/ash/AshCommands.java

@@ -62,6 +62,14 @@ public class AshCommands implements ClientCommandPlugin {
                 return 1;
             }));
 
+        commandDispatcher.register(ArgumentBuilders.literal("togglefps")
+            .executes(context -> {
+                config.showFps = !config.showFps;
+                config.saveConfig();
+                return 1;
+            }));
+
+
         commandDispatcher.register(ArgumentBuilders.literal("togglecoords")
             .executes(context -> {
                 config.showCoords = !config.showCoords;