From bda10c751378607a3fd9e35e33bf5ad4859fbed7 Mon Sep 17 00:00:00 2001 From: Hea3veN Date: Mon, 2 Feb 2015 20:21:17 -0300 Subject: [PATCH] fix sync issue of the accept equivalents button in lists, fixes #2411 --- common/buildcraft/core/ItemList.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/core/ItemList.java b/common/buildcraft/core/ItemList.java index 87f12696..7d2bc9e1 100644 --- a/common/buildcraft/core/ItemList.java +++ b/common/buildcraft/core/ItemList.java @@ -77,14 +77,18 @@ public class ItemList extends ItemBuildCraft { stacks[slot].stackSize = 1; } - if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT && slot == 0) { + if (slot == 0) { relatedItems.clear(); ores.clear(); if (stack == null) { isOre = false; } else { - setClientPreviewLists(); + if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) { + setClientPreviewLists(); + } else { + isOre = OreDictionary.getOreIDs(stacks[0]).length > 0; + } } } }