Skip to content

Commit

Permalink
feat: Add enableInCreative option to allow Pretty Beaches during crea…
Browse files Browse the repository at this point in the history
…tive mode #15
  • Loading branch information
BlayTheNinth committed May 24, 2024
1 parent f73a8c7 commit ed42f16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static void onBreakBlock(BreakBlockEvent event) {
BlockPos pos = event.getPos();
BlockState state = event.getState();
Player player = event.getPlayer();
if (player.getAbilities().instabuild) {
if (player.getAbilities().instabuild && !PrettyBeachesConfig.getActive().enableInCreative) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ public class PrettyBeachesConfigData implements BalmConfigData {
@Comment("Whether the flooding of adjacent air blocks should be animated or instant.")
public boolean animatedFlooding = true;

@Comment("Whether the Pretty Beaches behaviour should also be enabled in creative mode.")
public boolean enableInCreative = false;
}

0 comments on commit ed42f16

Please sign in to comment.