Skip to content

Commit

Permalink
Fix need for NPCs just to touch an inventory
Browse files Browse the repository at this point in the history
u wot
  • Loading branch information
mcmonkey4eva committed Oct 6, 2015
1 parent 16bc827 commit 41af2ba
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -621,7 +621,7 @@ public void setContents(dList list) {
filled++;
}
inventory.setContents(contents);
if (dNPC.matches(idHolder)) { // TODO: Directly store holder
if (Depends.citizens != null && dNPC.matches(idHolder)) { // TODO: Directly store holder
dNPC.valueOf(idHolder).getInventoryTrait().setContents(contents);
}
}
Expand Down

0 comments on commit 41af2ba

Please sign in to comment.