@SideOnly(Side.CLIENT) private void colorClicked(int hitx_, int hity_, int btn_) { hitx_ += 4; hity_ += 105; hitx_ = Math.abs(hitx_); hity_ = hity_ * -1; System.out.println("THR:" + hitx_ + "," + hity_); // hitx_ -= 119; // hity_ -= 124; // odd numbers rounded down if (hitx_ % 2 != 0) { hitx_ -= 1; } if (hity_ % 2 != 0) { hity_ -= 1; } hity_ /= 2; hitx_ /= 2; System.out.println("CLICKED:" + hitx_ + "," + hity_); double[] xshift = this.shiftColoursX(hitx_, hity_); double[] yshift = this.shiftColoursY(hity_, xshift); double r = yshift[0]; double g = yshift[1]; double b = yshift[2]; // System.out.println("YSHIFT\tR:" + r + "\tG:" + g + "\tB:" + b); if (tile != null) { tile.setPrimaryPaintColour(this.compressColourFloats((float) r, (float) g, (float) b)); } this.sendSyncPacket((byte) 0, this.compressColourFloats(r, g, b)); }