The item cache from network isn't needed

This commit is contained in:
Raoul Van den Berge
2016-12-06 17:26:47 +01:00
parent ac212dcf86
commit 4a27c5baeb

View File

@@ -144,9 +144,8 @@ public class ItemGridHandler implements IItemGridHandler {
@Override
public void onCraftingPreviewRequested(EntityPlayerMP player, int hash, int quantity) {
IStackList<ItemStack> cache = network.getItemStorageCache().getList().copy();
IStackList<ItemStack> cache = API.instance().createItemStackList();
// Since patterns aren't in the cache by default anymore, we add them here manually again
for (ICraftingPattern pattern : network.getPatterns()) {
for (ItemStack output : pattern.getOutputs()) {
if (output != null) {