Merge pull request #12 from tomevoll/patch-5

Fixes index out of bounds and prevent list from being modified by other threads on the client while rendering
This commit is contained in:
Raoul
2016-03-28 11:01:48 +02:00

View File

@@ -111,7 +111,7 @@ public class GuiGrid extends GuiBase {
@Override
public void drawForeground(int mouseX, int mouseY) {
scrollbar.update(this, mouseX, mouseY);
synchronized (grid.getController()) {
drawString(7, 7, t("gui.refinedstorage:grid"));
if (grid.getType() == EnumGridType.CRAFTING) {
@@ -190,6 +190,7 @@ public class GuiGrid extends GuiBase {
drawTooltip(mouseX, mouseY, t("misc.refinedstorage:clear"));
}
}
}
public List<StorageItem> getItems() {
List<StorageItem> items = new ArrayList<StorageItem>();