if(new Rectangle(guiLeft + 11, guiTop + 41, 158, 15).contains(mouseX, mouseY)) {
module.higherBound = (float)(mouseX - 6 - (guiLeft + 11)) / (158 - 11) * module.maxValue;
if(module.higherBound < -1) module.higherBound = -1;
if(module.higherBound > module.maxValue) module.higherBound = module.maxValue;
//higherBoundField.setText(PneumaticCraftUtils.roundNumberTo(module.higherBound, 1));
NetworkHandler.sendToServer(new PacketUpdatePressureModule(module, 1, module.higherBound));
} else if(new Rectangle(guiLeft + 11, guiTop + 55, 158, 15).contains(mouseX, mouseY)) {
module.lowerBound = (float)(mouseX - 6 - (guiLeft + 11)) / (158 - 11) * module.maxValue;
if(module.lowerBound < -1) module.lowerBound = -1;
if(module.lowerBound > module.maxValue) module.lowerBound = module.maxValue;
// lowerBoundField.setText(PneumaticCraftUtils.roundNumberTo(module.lowerBound, 1));
NetworkHandler.sendToServer(new PacketUpdatePressureModule(module, 0, module.lowerBound));
}
}
drawTexturedModalRect(scrollbarLowerBoundX, guiTop + 55, 183, 0, 15, 12);
drawTexturedModalRect(scrollbarHigherBoundX, guiTop + 41, 183, 0, 15, 12);