inv.readFromNBT(nbt.getCompoundTag("inv"));
for (int i = 0; i < selectedAreas.length; ++i) {
if (nbt.hasKey("selectedArea[" + i + "]")) {
selectedAreas[i] = new ZonePlan();
selectedAreas[i].readFromNBT(nbt.getCompoundTag("selectedArea[" + i + "]"));
}
}
}