super.mouseClicked(x, y, par3);
if(par3 == 1) {
for(IProgWidget widget : visibleSpawnWidgets) {
if(x >= widget.getX() + guiLeft && y >= widget.getY() + guiTop && x <= widget.getX() + guiLeft + widget.getWidth() / 2 && y <= widget.getY() + guiTop + widget.getHeight() / 2) {
GuiScreen screen = widget.getOptionWindow(this);
if(screen != null) mc.displayGuiScreen(screen);
}
}
for(IProgWidget widget : te.progWidgets) {
if(x >= widget.getX() + guiLeft && y >= widget.getY() + guiTop && x <= widget.getX() + guiLeft + widget.getWidth() / 2 && y <= widget.getY() + guiTop + widget.getHeight() / 2) {
GuiScreen screen = widget.getOptionWindow(this);
if(screen != null) mc.displayGuiScreen(screen);
}
}
}
}