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,7 +8,11 @@ class SWItem_14 {
private SWItem_14(){}
static Material getMaterial(String material) {
return Material.valueOf("LEGACY_" + material);
try{
return Material.valueOf(material);
}catch(IllegalArgumentException e){
return Material.valueOf("LEGACY_" + material);
}
}
static Material getDye(int colorCode){