Fixes getSpawnBlock error. (ClassCastException)