Skip to content

Commit f09a003

Browse files
committed
more clarification in the config and add default type
1 parent 52a45c6 commit f09a003

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/illegals/items/IllegalComponentTypes.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ public IllegalComponentTypes() {
2929
"Deletes items that have one or more illegal component types set.");
3030
this.resetToDefaults = config.getBoolean(configPath + ".reset-to-defaults", true, """
3131
Will reset DataComponent values specified below to their default values for that
32-
specific ItemStack.""");
32+
specific ItemStack instead of just deleting it.
33+
Depending on your scenario, you might want to set this to false if you dont feel
34+
like adding all illegal component types in this list.""");
3335
this.checkStored = config.getBoolean(configPath + ".check-stored-items", false, """
3436
If set to true, will check inside shulkers and bundles as well.
3537
Note: If handling is set to ACTION_ON_USE or STRICT, will delete shulkers / bundles
3638
if they contain any illegal item.""");
37-
this.illegalComponentTypes = config.getList(configPath + ".component-types", List.of("minecraft:max_stack_size"),
39+
this.illegalComponentTypes = config.getList(configPath + ".component-types", List.of("minecraft:max_stack_size", "minecraft:consumable"),
3840
"The exact DataComponentType you want to filter.")
3941
.stream()
4042
.map(configuredType -> {

0 commit comments

Comments
 (0)