Fix wielditem node materials

This fixes #1857 which is caused by material.MaterialType being set incorrectly.

This more closely matches the way textures and shaders are handled in mapblock_mesh.cpp.