9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2026-01-04 15:41:35 +00:00
This commit is contained in:
Xiao-MoMi
2023-02-08 21:47:29 +08:00
parent c573213c0d
commit 7db78b437a
12 changed files with 53 additions and 13 deletions

View File

@@ -134,6 +134,7 @@ public class BagDataManager extends Function {
}
public void readData(Player player) {
if (player == null || !player.isOnline()) return;
Inventory inventory = CustomFishing.plugin.getDataManager().getDataStorageInterface().loadBagData(player);
if (inventory != null) {
PlayerBagData playerBagData = new PlayerBagData(player, inventory);