mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-02 19:36:41 +00:00
Update to 1.20 (#2276)
* Towards 1.20 * Init bukkit * Update YAML to 2.0 * Fixes for 1.20 adapters * Update obfuscated field names * Remove getHandle workaround * entityManager is obfuscated * Update paperweight * [ci-skip] Add 1.20 to modrinth task --------- Co-authored-by: Phillipp Glanz <p.glanz@madfix.me> Co-authored-by: SirYwell <hannesgreule@outlook.de>
This commit is contained in:
committed by
GitHub
parent
152d870cdb
commit
e7876c4eba
@ -1,6 +1,7 @@
|
||||
package com.fastasyncworldedit.core.configuration.file;
|
||||
|
||||
import com.fastasyncworldedit.core.configuration.serialization.ConfigurationSerialization;
|
||||
import org.yaml.snakeyaml.LoaderOptions;
|
||||
import org.yaml.snakeyaml.constructor.SafeConstructor;
|
||||
import org.yaml.snakeyaml.error.YAMLException;
|
||||
import org.yaml.snakeyaml.nodes.Node;
|
||||
@ -12,6 +13,7 @@ import java.util.Map;
|
||||
public class YamlConstructor extends SafeConstructor {
|
||||
|
||||
public YamlConstructor() {
|
||||
super(new LoaderOptions());
|
||||
yamlConstructors.put(Tag.MAP, new ConstructCustomObject());
|
||||
}
|
||||
|
||||
|
@ -3,6 +3,7 @@ package com.fastasyncworldedit.core.configuration.file;
|
||||
import com.fastasyncworldedit.core.configuration.ConfigurationSection;
|
||||
import com.fastasyncworldedit.core.configuration.serialization.ConfigurationSerializable;
|
||||
import com.fastasyncworldedit.core.configuration.serialization.ConfigurationSerialization;
|
||||
import org.yaml.snakeyaml.DumperOptions;
|
||||
import org.yaml.snakeyaml.nodes.Node;
|
||||
import org.yaml.snakeyaml.representer.Representer;
|
||||
|
||||
@ -12,6 +13,7 @@ import java.util.Map;
|
||||
public class YamlRepresenter extends Representer {
|
||||
|
||||
public YamlRepresenter() {
|
||||
super(new DumperOptions());
|
||||
this.multiRepresenters.put(ConfigurationSection.class, new RepresentConfigurationSection());
|
||||
this.multiRepresenters.put(ConfigurationSerializable.class, new RepresentConfigurationSerializable());
|
||||
}
|
||||
|
Reference in New Issue
Block a user