if(!Mouse.getEventButtonState() && camera.isValid() && elapsed > 500) {
if(Mouse.getEventButton() == 1) {
if(selection != null) {
selection.config.toggleIoModeForFace(selection.face);
PacketHandler.INSTANCE.sendToServer(new PacketIoMode(selection.config,selection.face));
}
} else if(Mouse.getEventButton() == 0 && inNeigButBounds) {
renderNeighbours = !renderNeighbours;
}
}