mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-07 19:28:11 +01:00
Ignore backpack requests for NPCs (#156)
This commit is contained in:
parent
c1cf6e6316
commit
0aee9bf302
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020 GeorgH93
|
||||
* Copyright (C) 2021 GeorgH93
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -195,7 +195,7 @@ protected String getPlayerFormattedUUID(OfflinePlayer player)
|
||||
|
||||
public void getBackpack(final OfflinePlayer player, final Callback<at.pcgamingfreaks.Minepacks.Bukkit.API.Backpack> callback, final boolean createNewOnFail)
|
||||
{
|
||||
if(player == null)
|
||||
if(player == null || player.getClass().getName().contains("NPC"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user