mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
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:
parent
c409afe159
commit
f0a17025c7
1 changed files with 27 additions and 29 deletions
|
@ -48,9 +48,8 @@ public class TooltipEvent{
|
||||||
if(screen != null && !(screen instanceof GuiBooklet) && screen instanceof GuiContainer){
|
if(screen != null && !(screen instanceof GuiBooklet) && screen instanceof GuiContainer){
|
||||||
GuiContainer gui = (GuiContainer)screen;
|
GuiContainer gui = (GuiContainer)screen;
|
||||||
if(gui.inventorySlots != null && gui.inventorySlots.inventorySlots != null && !gui.inventorySlots.inventorySlots.isEmpty()){
|
if(gui.inventorySlots != null && gui.inventorySlots.inventorySlots != null && !gui.inventorySlots.inventorySlots.isEmpty()){
|
||||||
for(Object o : gui.inventorySlots.inventorySlots){
|
for(int i = 0; i < gui.inventorySlots.inventorySlots.size(); i++){
|
||||||
if(o instanceof Slot){
|
Slot slot = gui.inventorySlots.getSlot(i);
|
||||||
Slot slot = (Slot)o;
|
|
||||||
|
|
||||||
int guiLeft = ReflectionHelper.getPrivateValue(GuiContainer.class, gui, 4);
|
int guiLeft = ReflectionHelper.getPrivateValue(GuiContainer.class, gui, 4);
|
||||||
int guiTop = ReflectionHelper.getPrivateValue(GuiContainer.class, gui, 5);
|
int guiTop = ReflectionHelper.getPrivateValue(GuiContainer.class, gui, 5);
|
||||||
|
@ -88,7 +87,6 @@ public class TooltipEvent{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//Advanced Item Info
|
//Advanced Item Info
|
||||||
if(event.itemStack.getItem() != null){
|
if(event.itemStack.getItem() != null){
|
||||||
|
|
Loading…
Reference in a new issue