filter.min = Integer.parseInt(minField.getText());
filter.max = Integer.parseInt(maxField.getText());
if(isNew)
{
Mekanism.packetHandler.sendToServer(new NewFilterMessage(Coord4D.get(tileEntity), filter));
}
else {
Mekanism.packetHandler.sendToServer(new EditFilterMessage(Coord4D.get(tileEntity), false, origFilter, filter));
}