Skip to content

Commit

Permalink
shorten configpath
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Aug 10, 2024
1 parent c76b758 commit e43a720
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ public class PistonAuraDelay extends AEFModule implements Listener {

public PistonAuraDelay() {
super("crystal-aura.piston-aura-delay");
config.addComment(configPath+".enable",
"Rate-limits pistons that extend into crystals.");
this.pistonsPushingCrystals = new ExpiringSet<>(Duration.ofMillis(Math.max(1,
config.getInt("combat.crystal-aura.piston-aura-delay.piston-extend-delay-in-ticks", 40)) * 50L));
config.addComment(configPath+".enable", "Rate-limits pistons that extend into crystals.");
this.pistonsPushingCrystals = new ExpiringSet<>(Duration.ofMillis(
Math.max(1, config.getInt(configPath + ".piston-extend-delay-in-ticks", 40)) * 50L));
}

@Override
Expand Down

0 comments on commit e43a720

Please sign in to comment.