package vg.civcraft.mc.civmodcore.config;

import java.util.Map;
import javax.annotation.Nonnull;
import org.bukkit.configuration.MemoryConfiguration;
import org.bukkit.configuration.serialization.ConfigurationSerializable;

/**
 * Class is intended to be used by implementations of {@link ConfigurationSerializable} during the deserialization
 * process.
 */
public class ConfigSection extends MemoryConfiguration {

	/**
	 * @param data The data to create a new ConfigSection from.
	 * @return Returns a new ConfigSection.
	 */
	public static ConfigSection fromData(@Nonnull final Map<String, Object> data) {
		final var section = new ConfigSection();
		section.map.putAll(data);
		return section;
	}

}

@@ -653,33 +653,97 @@
 ;%0A%09%09
-section.map.putAll(data);
+for (var entry : data.entrySet()) %7B%0A%09%09%09section.set(entry.getKey(), entry.getValue());%0A%09%09%7D
 %0A%09%09r

Update ConfigSection