Fixed a bug with a concurrentModificationException sometimes spamming the console when looking at recipes in NEI

Closes https://github.com/Ellpeck/ActuallyAdditions/issues/13
This commit is contained in:
Ellpeck 2015-09-23 06:44:54 +02:00
parent c409afe159
commit f0a17025c7

View file

@ -48,9 +48,8 @@ public class TooltipEvent{
if(screen != null && !(screen instanceof GuiBooklet) && screen instanceof GuiContainer){
GuiContainer gui = (GuiContainer)screen;
if(gui.inventorySlots != null && gui.inventorySlots.inventorySlots != null && !gui.inventorySlots.inventorySlots.isEmpty()){
for(Object o : gui.inventorySlots.inventorySlots){
if(o instanceof Slot){
Slot slot = (Slot)o;
for(int i = 0; i < gui.inventorySlots.inventorySlots.size(); i++){
Slot slot = gui.inventorySlots.getSlot(i);
int guiLeft = ReflectionHelper.getPrivateValue(GuiContainer.class, gui, 4);
int guiTop = ReflectionHelper.getPrivateValue(GuiContainer.class, gui, 5);
@ -88,7 +87,6 @@ public class TooltipEvent{
}
}
}
}
//Advanced Item Info
if(event.itemStack.getItem() != null){