Skip to content

Commit

Permalink
fix(java17): mak fields transient (#115)
Browse files Browse the repository at this point in the history
* make SetTargetToNearbyBlockAwayFromInstigatorAction#random field transient
* make NearbyBlockRestricted#random transient
  • Loading branch information
BenjaminAmos authored Dec 5, 2023
1 parent b07ceb5 commit 20654b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class NearbyBlockRestricted extends BaseAction {
/**
* The random number provider for choosing the nearby block.
*/
private final Random random = new Random();
private final transient Random random = new Random();
/**
* The world region that this character is allowed to stray in. Defines an x&z area in world space.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class SetTargetToNearbyBlockAwayFromInstigatorAction extends BaseAction {

private static final int RANDOM_BLOCK_ITERATIONS = 10;

private final Random random = new Random();
private final transient Random random = new Random();

@In
private PluginSystem movementPluginSystem;
Expand Down

0 comments on commit 20654b8

Please sign in to comment.