!Fixed another "Player must be online" error

This commit is contained in:
ASangarin 2020-09-26 19:48:03 +02:00
parent f4a20057d0
commit 8c59edb229

View File

@ -47,6 +47,7 @@ public class GetMMOItemObjective extends Objective {
@EventHandler
public void a(CitizenInteractEvent event) {
Player player = event.getPlayer();
if(!getQuestProgress().getPlayer().isOnline()) return;
if (player.equals(getQuestProgress().getPlayer().getPlayer()) && event.getNPC().getId() == npcId && player.getInventory().getItemInMainHand() != null) {
NBTItem item = NBTItem.get(player.getInventory().getItemInMainHand());
int amount;