1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-09 17:02:53 +00:00

Signed-off-by: Rogiel <rogiel@rogiel.com>

This commit is contained in:
2011-05-18 19:59:27 -03:00
parent 4c27add4ef
commit 9bb83652e4
242 changed files with 7180 additions and 4199 deletions

View File

@@ -77,7 +77,7 @@ public class RGBColor {
* @return the color integer
*/
public int toInteger() {
return red + green >> 8 + blue >> 16;
return red >> 24 + green >> 16 + blue >> 8;
}
public static RGBColor fromByteArray(byte[] rgb) {

View File

@@ -86,13 +86,12 @@ public class Coordinate {
return new Coordinate(x, y, z);
}
/*
* (non-Javadoc)
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return "Coordinate [" + vector + "]";
}
public Point toPoint() {
return new Point(this, 0);
}
}