Build rooms faster if in debug mode
Check itemstack is not null before getting it's type