Fixed empty list when toggling to "Craftable" view in a terminal.

This commit is contained in:
Gunther De Wachter
2017-07-23 17:41:05 +02:00
parent c97165cc63
commit ac528d09ae
+4 -2
View File
@@ -177,10 +177,12 @@ public class ItemRepo
if( viewMode == ViewItems.CRAFTABLE )
{
is = is.copy();
is.setStackSize( 0 );
// is.setStackSize( 0 ) triggers isEmpty() and thus only shows empty stacks!
is.setStackSize( 1 );
is.setShowCraftingLabel( true );
}
if( viewMode == ViewItems.STORED && is.getStackSize() == 0 )
if( viewMode == ViewItems.STORED && is.getShowCraftingLabel() )
{
continue;
}