fix sync issue of the accept equivalents button in lists, fixes #2411
This commit is contained in:
parent
d52aa02453
commit
bda10c7513
1 changed files with 6 additions and 2 deletions
|
@ -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 {
|
||||||
|
if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) {
|
||||||
setClientPreviewLists();
|
setClientPreviewLists();
|
||||||
|
} else {
|
||||||
|
isOre = OreDictionary.getOreIDs(stacks[0]).length > 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue