stonecutter: improve backwards-compatibility

Builds targetting Minecraft versions below 1.21.6 will now once again contain the `getScreen` method with `Screen` as their return value instead of `MidnightConfigScreen`.
This ensures that mods compiled for older MidnightLib versions continue working as expected.

The return value has to be changed to `MidnightConfigScreen` in 1.21.6 and up due to NeoForge removing support for the `@OnlyIn` annotation – thus breaking server-only installations when referencing client-only classes like `Screen`.
This commit is contained in:
Martin Prokoph
2025-11-22 17:49:48 +01:00
parent 071f79b763
commit 4076ee2b6f
4 changed files with 22 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ org.gradle.parallel=false
#org.gradle.configureondemand=true
# Mod properties
mod.version=1.9.0-beta.1
mod.version=1.9.0-beta.2
mod.group=eu.midnightdust
mod.id=midnightlib
mod.name=MidnightLib