Fixed a possible NPE (why was this outside anyway...).
Fixes an incompatibility with rotateableblocks and possibly other mods.