ArrayList<CameraView> list = new ArrayList<CameraView>();
for(int i = 1; i <= 30; i++){
if(nbt != null && nbt.hasKey("Camera" + i)){
String[] coords = nbt.getString("Camera" + i).split(" ");
list.add(new CameraView(Integer.parseInt(coords[0]), Integer.parseInt(coords[1]), Integer.parseInt(coords[2]), (coords.length == 4 ? Integer.parseInt(coords[3]) : 0)));
<BUG>}
}</BUG>
return list;
}
public int getNumberOfCamerasBound(NBTTagCompound nbt) {

ArrayList<CameraView> list = new ArrayList<CameraView>();
for(int i = 1; i <= 30; i++){
if(nbt != null && nbt.hasKey("Camera" + i)){
String[] coords = nbt.getString("Camera" + i).split(" ");
list.add(new CameraView(Integer.parseInt(coords[0]), Integer.parseInt(coords[1]), Integer.parseInt(coords[2]), (coords.length == 4 ? Integer.parseInt(coords[3]) : 0)));
}
else
list.add(null);
}
return list;
}
public int getNumberOfCamerasBound(NBTTagCompound nbt) {
