Add support for 1.20.1

This commit is contained in:
Alexander Brandes 2023-06-12 16:36:06 +02:00
parent dae6c69e54
commit d9463ce8b5
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C

View File

@ -182,8 +182,8 @@ public final class PaperweightAdapter implements BukkitImplAdapter<net.minecraft
CraftServer.class.cast(Bukkit.getServer()); CraftServer.class.cast(Bukkit.getServer());
int dataVersion = CraftMagicNumbers.INSTANCE.getDataVersion(); int dataVersion = CraftMagicNumbers.INSTANCE.getDataVersion();
if (dataVersion != 3463) { if (dataVersion != 3463 && dataVersion != 3465) {
throw new UnsupportedClassVersionError("Not 1.20!"); throw new UnsupportedClassVersionError("Not 1.20(.1)!");
} }
serverWorldsField = CraftServer.class.getDeclaredField("worlds"); serverWorldsField = CraftServer.class.getDeclaredField("worlds");