Fix compile error

This commit is contained in:
GeorgH93 2023-07-20 21:10:11 +02:00
parent 2215dea369
commit 0d880fe4f7
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8

View File

@ -137,7 +137,7 @@ public void saveBackpack(Backpack backpack)
@Override @Override
protected void loadBackpack(final OfflinePlayer player, final Callback<Backpack> callback) protected void loadBackpack(final OfflinePlayer player, final Callback<Backpack> callback)
{ //TODO this needs to be done async! { //TODO this needs to be done async!
File save = new File(saveFolder, getFileName(player)); File save = new File(saveFolder, getFileName(player.getUniqueId()));
ItemStack[] itemStacks = readFile(itsSerializer, save, plugin.getLogger()); ItemStack[] itemStacks = readFile(itsSerializer, save, plugin.getLogger());
if(itemStacks != null) if(itemStacks != null)
{ {