-Added Lamp Colors

This commit is contained in:
Ellpeck 2015-06-29 20:55:06 +02:00
parent d5930da5e3
commit 4f49f7fc65
9 changed files with 5 additions and 3 deletions

View file

@ -38,9 +38,11 @@ public enum TheColoredLampColors implements INameableItem{
} }
public static TheColoredLampColors getColorFromDyeName(String color){ public static TheColoredLampColors getColorFromDyeName(String color){
String actualName = color.substring(3); if(color.substring(0, 3).equals("dye")){
for(int i = 0; i < values().length; i++){ String actualName = color.substring(3);
if(values()[i].getName().equals(actualName)) return values()[i]; for(int i = 0; i < values().length; i++){
if(values()[i].getName().equals(actualName)) return values()[i];
}
} }
return null; return null;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 477 B

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 554 B

After

Width:  |  Height:  |  Size: 493 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 540 B

After

Width:  |  Height:  |  Size: 518 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 625 B

After

Width:  |  Height:  |  Size: 606 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 402 B

After

Width:  |  Height:  |  Size: 471 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 478 B

After

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 544 B

After

Width:  |  Height:  |  Size: 489 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 615 B

After

Width:  |  Height:  |  Size: 600 B