fix: crash on servers

- This makes overriding the screen less flexible, but out of all options, this was the best way to do it. Previously, the `@EnvType` annotation took care of keeping this out of the server code, but NeoForge decided to break perfectly functional behaviour once again, requiring me to remove the annotations 🫠
This commit is contained in:
Martin Prokoph
2025-10-03 14:55:40 +02:00
parent c07c466398
commit 3db1c1eb23
4 changed files with 25 additions and 7 deletions

View File

@@ -39,6 +39,20 @@ loom {
client()
name = "Test Minecraft Client"
mods {
create('midnightlib') {
sourceSet sourceSets.main
}
create('modid') { // test mod
sourceSet sourceSets.test
}
}
source sourceSets.test
}
testServer {
server()
name = "Test Minecraft Server"
mods {
create('midnightlib') {
sourceSet sourceSets.main