Skip to content

Commit

Permalink
Vulnerability fix - Public static fields should be final.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Nov 13, 2019
1 parent 867741b commit 654b0e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/world/bentobox/biomes/BiomesAddon.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public boolean isLevelProvided()
* This flag allows to change biomes in any part of the world. It will not limit
* player to their island. Useful for skygrid without protection flags.
*/
public static Flag BIOMES_WORLD_PROTECTION =
public static final Flag BIOMES_WORLD_PROTECTION =
new Flag.Builder("BIOMES_WORLD_PROTECTION", Material.GRASS_BLOCK).
type(Flag.Type.WORLD_SETTING).
mode(Flag.Mode.ADVANCED).
Expand All @@ -359,7 +359,7 @@ public boolean isLevelProvided()
* that only Island owner can change biomes.
* By default it is set to Visitor.
*/
public static Flag BIOMES_ISLAND_PROTECTION =
public static final Flag BIOMES_ISLAND_PROTECTION =
new Flag.Builder("BIOMES_ISLAND_PROTECTION", Material.GRASS_BLOCK).
mode(Flag.Mode.ADVANCED).
build();
Expand Down

0 comments on commit 654b0e1

Please sign in to comment.