Skip to content

Commit

Permalink
Make penalties controllable via flags
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Nov 18, 2024
1 parent 1bdd83f commit c5e84f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ public class Costs {
/**
* We don't want a bot that frequently tries to break blocks instead of walking around them.
*/
public static final double BREAK_BLOCK_PENALTY = 2;
public static final double BREAK_BLOCK_PENALTY = Integer.getInteger("sf.pathfinding-break-block-penalty", 2);
/**
* We don't want a bot that frequently tries to place blocks instead of finding smarter paths.
*/
public static final double PLACE_BLOCK_PENALTY = 5;
public static final double PLACE_BLOCK_PENALTY = Integer.getInteger("sf.pathfinding-place-block-penalty", 5);
/**
* A normal server runs at 20 ticks per second.
*/
Expand Down

0 comments on commit c5e84f4

Please sign in to comment.