Add 1.19.2 (#1898)

feat: Add 1.19.2
This commit is contained in:
Alexander Brandes 2022-08-05 17:05:15 +02:00 committed by GitHub
parent e942175559
commit a414fd308e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,8 +183,8 @@ public final class PaperweightAdapter implements BukkitImplAdapter<net.minecraft
CraftServer.class.cast(Bukkit.getServer());
int dataVersion = CraftMagicNumbers.INSTANCE.getDataVersion();
if (dataVersion != 3105 && dataVersion != 3117) {
throw new UnsupportedClassVersionError("Not 1.19 or 1.19.1!");
if (dataVersion != 3105 && dataVersion != 3117 && dataVersion != 3120) {
throw new UnsupportedClassVersionError("Not 1.19, 1.19.1 or 1.19.2!");
}
worldsField = CraftServer.class.getDeclaredField("worlds");