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){
|
||||
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){
|
||||
|
|
Loading…
Reference in a new issue