Use WorldRenderEvents if available (#680)

* Use WorldRenderEvents if available

Fixes an issue when Canvas is installed

* Improve code

* Depend only on fabric-rendering-v1

* Use fabricApi.module
This commit is contained in:
ramidzkh authored and GitHub committed 2021-01-26 01:19:44 -04:00
1 parent a83548876a
commit 566d2a7bca
5 files changed
+50 -6

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ dependencies {
modCompile "net.fabricmc:fabric-loader:${project.loader_version}"
// Fabric API. This is technically optional, but you probably want it anyway.
// modCompile "net.fabricmc:fabric:${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.