Fixed a possible NPE (and hopefully the 100% CPU usage issue).
Fixed blocks not correctly rendering in layer mode.
Fixed glass panes and iron bars not rendering at all.