mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-15 04:41:37 +08:00
[Bukkit] Add 1.20.1 support to adapter
This commit is contained in:
parent
c5188212b5
commit
1f22906aca
@ -180,8 +180,8 @@ public PaperweightAdapter() throws NoSuchFieldException, NoSuchMethodException {
|
||||
CraftServer.class.cast(Bukkit.getServer());
|
||||
|
||||
int dataVersion = CraftMagicNumbers.INSTANCE.getDataVersion();
|
||||
if (dataVersion != 3463) {
|
||||
throw new UnsupportedClassVersionError("Not 1.20!");
|
||||
if (dataVersion != 3463 && dataVersion != 3465) {
|
||||
throw new UnsupportedClassVersionError("Not 1.20(.1)!");
|
||||
}
|
||||
|
||||
serverWorldsField = CraftServer.class.getDeclaredField("worlds");
|
||||
|
Loading…
Reference in New Issue
Block a user