use of riskyken.armourersWorkshop.common.network.messages.client.MessageClientGuiColourUpdate in project Armourers-Workshop by RiskyKen.
the class GuiColourMixer method updateColour.
private void updateColour() {
Color colourOld = new Color(tileEntityColourMixer.getColour(0));
PaintType paintType = PaintType.values()[paintTypeDropDown.getListSelectedIndex()];
if (this.colour.equals(colourOld)) {
if (paintType == tileEntityColourMixer.getPaintType(0))
return;
}
MessageClientGuiColourUpdate message = new MessageClientGuiColourUpdate(this.colour.getRGB(), false, paintType);
PacketHandler.networkWrapper.sendToServer(message);
}
Aggregations