Merge pull request 'Fixing non loading items' (#56) from itemFix into master
Reviewed-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Commit
586a4f0c9f
@ -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){
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren