Updated forge update checker
Removed Config.java and ModMenu EntryPoint for fabric Added abstract config menu display Updated recomender version for forge in updateChecker.json
This commit is contained in:
@@ -24,6 +24,7 @@ import java.util.Arrays;
|
||||
import java.util.Objects;
|
||||
|
||||
import static me.zacharias.speedometer.Speedometer.LOGGER;
|
||||
import static me.zacharias.speedometer.Speedometer.MOD_ID;
|
||||
|
||||
public class Client {
|
||||
public static final KeyMapping CONFIG_KEY = new KeyMapping(
|
||||
@@ -44,6 +45,9 @@ public class Client {
|
||||
public static BufferedImage img = null;
|
||||
|
||||
public static void init(){
|
||||
|
||||
Platform.getMod(MOD_ID).registerConfigurationScreen(parent -> ConfigMenu.getConfig(parent).build());
|
||||
|
||||
KeyMappingRegistry.register(CONFIG_KEY);
|
||||
ClientTickEvent.CLIENT_POST.register(minecraft -> {
|
||||
if(CONFIG_KEY.consumeClick()){
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
package me.zacharias.speedometer.fabric;
|
||||
|
||||
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
||||
import com.terraformersmc.modmenu.api.ModMenuApi;
|
||||
import me.shedaniel.clothconfig2.api.ConfigBuilder;
|
||||
import me.zacharias.speedometer.ConfigMenu;
|
||||
|
||||
public class Config implements ModMenuApi {
|
||||
@Override
|
||||
public ConfigScreenFactory<?> getModConfigScreenFactory() {
|
||||
return parent -> {
|
||||
ConfigBuilder builder = ConfigMenu.getConfig(parent);
|
||||
return builder.build();
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -14,15 +14,14 @@
|
||||
"license": "All Rights Reserved",
|
||||
"icon": "icon.png",
|
||||
|
||||
"environment": "*",
|
||||
"environment": "client",
|
||||
"entrypoints": {
|
||||
"main": ["me.zacharias.speedometer.fabric.SpeedometerFabric"],
|
||||
"modmenu": ["me.zacharias.speedometer.fabric.Config"]
|
||||
"main": ["me.zacharias.speedometer.fabric.SpeedometerFabric"]
|
||||
},
|
||||
"depends": {
|
||||
"fabricloader": ">=0.14.21",
|
||||
"minecraft": ">=1.20",
|
||||
"cloth-config": ">=11.1.106",
|
||||
"architectury": ">= 9.1.10"
|
||||
"architectury": ">=9.1.10"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,20 +5,20 @@
|
||||
"2.0": "Made the speedometer text movable, added debug data display, added visual speedometer",
|
||||
"3.0": "Added size setting for visual speedometer, changed how the visual speedometer location is set",
|
||||
"3.1": "Fixed error in language file",
|
||||
"3.2": "Correct checker for Client or Server environment, updated dependencies, added dependency check in mod data file"
|
||||
"3.2": "Correct checker for Client or Server environment, updated dependencies, added dependency check in mod data file, added a renamer to rename the mod file if it's on a server"
|
||||
},
|
||||
"1.20": {
|
||||
"1.0": "First version",
|
||||
"2.0": "Made the speedometer text movable, added debug data display, added visual speedometer",
|
||||
"3.0": "Added size setting for visual speedometer, changed how the visual speedometer location is set",
|
||||
"3.1": "Fixed error in language file",
|
||||
"3.2": "Correct checker for Client or Server environment, updated dependencies, added dependency check in mod data file"
|
||||
"3.2": "Correct checker for Client or Server environment, updated dependencies, added dependency check in mod data file, added a renamer to rename the mod file if it's on a server"
|
||||
},
|
||||
"promos": {
|
||||
"1.20.1-latest": "3.2",
|
||||
"1.20.1-recommended": "3.1",
|
||||
"1.20.1-recommended": "3.2",
|
||||
|
||||
"1.20-latest": "3.2",
|
||||
"1.20-recommended": "3.1"
|
||||
"1.20-recommended": "3.2"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user