Skip to content

Commit

Permalink
rename enableClaimApiCompat to enableProtectionApiCompat
Browse files Browse the repository at this point in the history
  • Loading branch information
marlester-dev committed Dec 16, 2024
1 parent 4c660a7 commit 11e8745
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/b1n_ry/yigd/compat/InvModCompat.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ else if (compatConfig.enableBeansBackpacksCompat)
invCompatMods.add(new BeansBackpacksCompat());
}

if (compatConfig.enableClaimApiCompat && loader.isModLoaded("common-protection-api"))
if (compatConfig.enableProtectionApiCompat && loader.isModLoaded("common-protection-api"))
CommonProtectionApiCompat.init();
if (loader.isModLoaded("orpheus"))
OrpheusCompat.init();
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/b1n_ry/yigd/config/YigdConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -272,16 +272,16 @@ public static class BlockUnderGrave {
add(new MapEntry("minecraft:the_end", "minecraft:end_stone"));
add(new MapEntry("misc", "minecraft:dirt"));
}};
@Comment("Defines whether the block under grave can be generated in claims where the player can NOT place blocks if the claim api compat is enabled.")
@Comment("Defines whether the block under grave can be generated in claims where the player can NOT place blocks if protection api compat is enabled.")
public boolean generateOnProtectedLand = false;
@Comment("Defines whether the block under grave can be generated in claims where the player CAN place blocks if the claim api compat is enabled.")
@Comment("Defines whether the block under grave can be generated in claims where the player CAN place blocks if protection api compat is enabled.")
public boolean generateInOwnClaim = true;
}
}

public static class CompatConfig {
@Comment("Enables compatibility with Common Protection API (\"Claim API\"), if present")
public boolean enableClaimApiCompat = true;
public boolean enableProtectionApiCompat = true;
@Comment("Defines the standard drop rule in claims where the player can NOT place blocks. While PUT_IN_GRAVE, other drop rules will be prioritized")
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
public DropRule standardDropRuleInClaim = DropRule.DROP;
Expand Down

0 comments on commit 11e8745

Please sign in to comment.