diff --git a/build.gradle b/build.gradle index bb46a7a2..8299bcae 100644 --- a/build.gradle +++ b/build.gradle @@ -24,7 +24,7 @@ dependencies { // Fabric API. This is technically optional, but you probably want it anyway. //modImplementation "net.fabricmc:fabric:${project.fabric_version}" - modCompileOnly fabricApi.module("fabric-rendering-v1", project.fabric_version) + //modCompileOnly fabricApi.module("fabric-rendering-v1", project.fabric_version) // PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs. // You may need to force-disable transitiveness on them. diff --git a/gradle.properties b/gradle.properties index 436e29bd..420cdfcb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/use # or better: https://modmuss50.me/fabric.html - minecraft_version=22w46a + minecraft_version=1.19.3-pre1 loader_version=0.14.10 fabric_version=0.66.4+1.19.3 diff --git a/src/main/java/carpet/CarpetServer.java b/src/main/java/carpet/CarpetServer.java index bb80f606..d63c27e5 100644 --- a/src/main/java/carpet/CarpetServer.java +++ b/src/main/java/carpet/CarpetServer.java @@ -80,7 +80,7 @@ public class CarpetServer // static for now - easier to handle all around the co settingsManager = new carpet.settings.SettingsManager(CarpetSettings.carpetVersion, "carpet", "Carpet Mod"); settingsManager.parseSettingsClass(CarpetSettings.class); extensions.forEach(CarpetExtension::onGameStarted); - FabricAPIHooks.initialize(); + //FabricAPIHooks.initialize(); CarpetScriptServer.parseFunctionClasses(); } diff --git a/src/main/java/carpet/utils/FabricAPIHooks.java b/src/main/java/carpet/utils/FabricAPIHooks.java index 5120fb70..8ece719b 100644 --- a/src/main/java/carpet/utils/FabricAPIHooks.java +++ b/src/main/java/carpet/utils/FabricAPIHooks.java @@ -1,5 +1,5 @@ package carpet.utils; - +/* import carpet.network.CarpetClient; import com.mojang.blaze3d.systems.RenderSystem; import net.fabricmc.fabric.api.client.rendering.v1.WorldRenderEvents; @@ -7,9 +7,9 @@ import net.fabricmc.loader.api.FabricLoader; import net.fabricmc.loader.api.SemanticVersion; import net.fabricmc.loader.api.Version; import net.fabricmc.loader.api.VersionParsingException; - +*/ public class FabricAPIHooks { - +/* public static final boolean WORLD_RENDER_EVENTS = hasMod("fabric-rendering-v1", "1.5.0"); private FabricAPIHooks() { @@ -17,7 +17,7 @@ public class FabricAPIHooks { public static void initialize() { if (WORLD_RENDER_EVENTS) { - WorldRenderEvents.BEFORE_DEBUG_RENDER.register(context -> { + //WorldRenderEvents.BEFORE_DEBUG_RENDER.register(context -> { if (false) {//(CarpetClient.shapes != null) { // likely won't need it. CarpetClient.shapes.render(context.matrixStack(), context.camera(), context.tickDelta()); } @@ -39,4 +39,6 @@ public class FabricAPIHooks { return false; }).orElse(false); } + + */ }