fix sync issue of the accept equivalents button in lists, fixes #2411

This commit is contained in:
Hea3veN 2015-02-02 20:21:17 -03:00
parent d52aa02453
commit bda10c7513

View file

@ -77,14 +77,18 @@ public class ItemList extends ItemBuildCraft {
stacks[slot].stackSize = 1; stacks[slot].stackSize = 1;
} }
if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT && slot == 0) { if (slot == 0) {
relatedItems.clear(); relatedItems.clear();
ores.clear(); ores.clear();
if (stack == null) { if (stack == null) {
isOre = false; isOre = false;
} else { } else {
setClientPreviewLists(); if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) {
setClientPreviewLists();
} else {
isOre = OreDictionary.getOreIDs(stacks[0]).length > 0;
}
} }
} }
} }