Fix another NPE in MaterialConverter.

This commit is contained in:
Jeremy Wood 2019-01-30 10:11:43 -05:00 committed by GitHub
parent 5e067fa72d
commit d7894eb847
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public class MaterialConverter {
if (mapping != null) {
return Material.matchMaterial(mapping.getFlatteningType());
} else {
return Material.matchMaterial(value);
return Material.matchMaterial(value != null ? value : "");
}
}
}