mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-02-05 17:54:59 +01:00
Merge remote-tracking branch 'origin/1.18/fabric/dev' into 1.19/fabric/dev
This commit is contained in:
commit
4f33fc3a7e
1 changed files with 6 additions and 7 deletions
|
@ -29,7 +29,6 @@ import net.fabricmc.fabric.api.client.model.ModelLoadingRegistry;
|
||||||
import net.fabricmc.fabric.api.client.rendering.v1.WorldRenderEvents;
|
import net.fabricmc.fabric.api.client.rendering.v1.WorldRenderEvents;
|
||||||
import net.fabricmc.fabric.api.resource.ResourceManagerHelper;
|
import net.fabricmc.fabric.api.resource.ResourceManagerHelper;
|
||||||
import net.fabricmc.loader.api.FabricLoader;
|
import net.fabricmc.loader.api.FabricLoader;
|
||||||
import net.fabricmc.loader.api.SemanticVersion;
|
|
||||||
import net.fabricmc.loader.api.Version;
|
import net.fabricmc.loader.api.Version;
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
import net.minecraft.server.packs.PackType;
|
import net.minecraft.server.packs.PackType;
|
||||||
|
@ -38,7 +37,7 @@ public class Flywheel implements ClientModInitializer {
|
||||||
|
|
||||||
public static final String ID = "flywheel";
|
public static final String ID = "flywheel";
|
||||||
public static final Logger LOGGER = LogUtils.getLogger();
|
public static final Logger LOGGER = LogUtils.getLogger();
|
||||||
private static SemanticVersion version;
|
private static Version version;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInitializeClient() {
|
public void onInitializeClient() {
|
||||||
|
@ -47,10 +46,10 @@ public class Flywheel implements ClientModInitializer {
|
||||||
.orElseThrow(() -> new IllegalStateException("Could not get the mod container for Flywheel!"))
|
.orElseThrow(() -> new IllegalStateException("Could not get the mod container for Flywheel!"))
|
||||||
.getMetadata()
|
.getMetadata()
|
||||||
.getVersion();
|
.getVersion();
|
||||||
if (!(version instanceof SemanticVersion semver)) {
|
// if (!(version instanceof SemanticVersion semver)) {
|
||||||
throw new IllegalStateException("Got non-semantic version for Flywheel!");
|
// throw new IllegalStateException("Got non-semantic version for Flywheel!");
|
||||||
}
|
// }
|
||||||
Flywheel.version = semver;
|
Flywheel.version = version;
|
||||||
|
|
||||||
FlwConfig.init();
|
FlwConfig.init();
|
||||||
|
|
||||||
|
@ -87,7 +86,7 @@ public class Flywheel implements ClientModInitializer {
|
||||||
LOGGER.debug("Successfully loaded {}", PausedPartialTickAccessor.class.getName());
|
LOGGER.debug("Successfully loaded {}", PausedPartialTickAccessor.class.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static SemanticVersion getVersion() {
|
public static Version getVersion() {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue