Update adapters

This commit is contained in:
N0tMyFaultOG 2020-10-09 22:39:36 +02:00
parent 3c40c53f66
commit d42e152348
2 changed files with 2 additions and 1 deletions

View File

@ -89,10 +89,11 @@ public class BukkitServerInterface extends AbstractPlatform implements MultiUser
return BukkitRegistries.getInstance();
}
@SuppressWarnings("deprecation")
@Override
public int getDataVersion() {
if (plugin.getBukkitImplAdapter() != null) {
return plugin.getBukkitImplAdapter().getDataVersion();
return Bukkit.getUnsafe().getDataVersion();
}
return -1;
}