Cap values to max when reading from NBT