Changed operand on Material Type check... hopefully will fix NPE in
v1.4.4 (Yet to test)