mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
Fixed quest reward null pointer exception.
This commit is contained in:
1 parent
3d498814f9
commit
cfac349265
1 file changed
+1
-1
@@ -354,7 +354,7 @@ public class NoppesUtilPlayer {
|
||||
|
||||
while(var8.hasNext()) {
|
||||
ItemStack item = (ItemStack)var8.next();
|
||||
if (item.stackSize > 0) {
|
||||
if (item != null && item.stackSize > 0) {
|
||||
IItemStack iStack = NpcAPI.Instance().getIItemStack(item);
|
||||
if (iStack != null){
|
||||
list.add(iStack);
|
||||
|
||||
Reference in new issue
Block a user