Skip to content

Commit

Permalink
Fixed issue with viewing just crafted/stored items
Browse files Browse the repository at this point in the history
  • Loading branch information
BrockWS committed Feb 6, 2019
1 parent 2186f5a commit 05e55b5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ public void updateView() {
stream.forEach(t -> {
T stack = t.copy();
if (this.getViewMode().equals(ViewItems.CRAFTABLE)) {
if (!stack.isCraftable())
return;
stack.setStackSize(0);
} else if (this.getViewMode().equals(ViewItems.STORED) && stack.getStackSize() < 1) {
return;
}
this.view.add(stack);
});
Expand Down

0 comments on commit 05e55b5

Please sign in to comment.