SteamWar/SpigotCore
Archiviert
13
0

Merge pull request 'Fixing non loading items' (#56) from itemFix into master

Reviewed-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Lixfel 2020-08-29 18:44:21 +02:00
Commit 586a4f0c9f

Datei anzeigen

@ -8,8 +8,12 @@ class SWItem_14 {
private SWItem_14(){} private SWItem_14(){}
static Material getMaterial(String material) { static Material getMaterial(String material) {
try{
return Material.valueOf(material);
}catch(IllegalArgumentException e){
return Material.valueOf("LEGACY_" + material); return Material.valueOf("LEGACY_" + material);
} }
}
static Material getDye(int colorCode){ static Material getDye(int colorCode){
switch(colorCode){ switch(colorCode){