Skip to content

Commit

Permalink
Hotfix chrash (ldtteam#1977)
Browse files Browse the repository at this point in the history
  • Loading branch information
marchermans authored and Raycoms committed Jan 7, 2018
1 parent a3dfa39 commit 9fe8990
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public Map<Predicate<ItemStack>, Integer> getRequiredItemsAndAmount()
{
final ItemStack stack = mainWorker.getInventoryCitizen().getStackInSlot(i);

if(ItemStackUtils.isEmpty(stack) && stack.getItem() != SAPLING_STACK.getItem())
if(ItemStackUtils.isEmpty(stack) || stack.getItem() != SAPLING_STACK.getItem())
{
continue;
}
Expand Down

0 comments on commit 9fe8990

Please sign in to comment.