public final void mouseMovedOrUp(int x, int y, int button){
if(lastClickedComponent != null){
//System.out.println(lastMouseClick);
boolean wasDoubleClick = Minecraft.getSystemTime() - lastMouseClick < 250L;
mouseReleased(lastClickedComponent, x, y, button, mouseClickCount++, wasDoubleClick);
for(GuiComponent c : components){
if(c.isMouseInComponent(x, y)){
c.mouseReleased(x, y, button, mouseClickCount, wasDoubleClick);
}
}
lastMouseClick = Minecraft.getSystemTime();
lastClickedComponent = null;
}
}