Properly fix Bukkit material registration for modded items. Fixes #1042, #1043, #1051, #1052