mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-03-13 13:39:22 +01:00
Bugfix
This commit is contained in:
parent
46672c44f1
commit
643dbacc63
@ -129,8 +129,7 @@ public Backpack(OfflinePlayer owner, ItemStack[] backpack, int ID)
|
||||
Minepacks.getInstance().getLogger().warning(owner.getName() + "'s backpack has to many items.");
|
||||
if(owner.isOnline())
|
||||
{
|
||||
owner.getPlayer().getWorld().dropItemNaturally(owner.getPlayer().getLocation(), stack);
|
||||
//Owner is online!
|
||||
Bukkit.getScheduler().runTask(Minepacks.getInstance(), () -> owner.getPlayer().getWorld().dropItemNaturally(owner.getPlayer().getLocation(), stack));
|
||||
}
|
||||
else throw new RuntimeException("Backpack to big for MC 1.14 and up!");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user