ignore group property by default

This commit is contained in:
Relentless 2022-09-02 21:44:32 +02:00
parent a3a2cc7b13
commit e8a24777d8
No known key found for this signature in database
GPG key ID: 759D97B8C6F25265

View file

@ -72,6 +72,7 @@ public class DuplicationConfig extends Config {
private JsonCompare.CompareSettings defaultSettings() {
JsonCompare.CompareSettings result = new JsonCompare.CompareSettings();
result.ignoreField("conditions");
result.ignoreField("group");
result.addRule("cookingtime", new JsonCompare.HigherRule());
result.addRule("energy", new JsonCompare.HigherRule());
result.addRule("experience", new JsonCompare.HigherRule());
@ -81,6 +82,7 @@ public class DuplicationConfig extends Config {
private LinkedHashMap<ResourceLocation, JsonCompare.CompareSettings> defaultOverrides() {
JsonCompare.CompareSettings result = new JsonCompare.CompareSettings();
result.ignoreField("conditions");
result.ignoreField("group");
result.ignoreField("pattern");
result.ignoreField("key");
LinkedHashMap<ResourceLocation, JsonCompare.CompareSettings> resultMap = new LinkedHashMap<>();