Update Paperweight

This commit is contained in:
Alexander Brandes 2023-12-08 16:26:06 +01:00
parent 6d295bde9a
commit 026b2eca9c
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C

View File

@ -181,8 +181,8 @@ public final class PaperweightAdapter implements BukkitImplAdapter<net.minecraft
CraftServer.class.cast(Bukkit.getServer());
int dataVersion = CraftMagicNumbers.INSTANCE.getDataVersion();
if (dataVersion != 3698) {
throw new UnsupportedClassVersionError("Not 1.20.4");
if (dataVersion != 3698 && dataVersion != 3700) {
throw new UnsupportedClassVersionError("Not 1.20.(3/4)!");
}
serverWorldsField = CraftServer.class.getDeclaredField("worlds");