Skip to content

Commit

Permalink
patch errors from previous dMaterial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 10, 2018
1 parent 6b0efa8 commit b89935c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -639,14 +639,14 @@ public static dMaterial valueOf(String string, TagContext context) {
}
Material m = Material.getMaterial(string);
if (m != null) {
if (context.debug && index >= 0) {
if ((context == null || context.debug) && index >= 0) {
dB.log("Material ID and data magic number support is deprecated and WILL be removed in a future release. Use relevant properties instead.");
}
return getMaterialFrom(m, data);
}
dMaterial mat = all_dMaterials.get(string);
if (mat != null) {
if (context.debug && index >= 0) {
if ((context == null || context.debug) && index >= 0) {
dB.log("Material ID and data magic number support is deprecated and WILL be removed in a future release. Use relevant properties instead.");
}
if (data == 0) {
Expand Down

0 comments on commit b89935c

Please sign in to comment.