Skip to content

Commit

Permalink
Set AllowCave to true and hide this option by default
Browse files Browse the repository at this point in the history
  • Loading branch information
RestoreMonarchy committed Sep 27, 2024
1 parent 035b626 commit f2a542a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Teleportation/Teleportation.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net48</TargetFramework>
<LangVersion>latest</LangVersion>
<RootNamespace>RestoreMonarchy.Teleportation</RootNamespace>
<Version>1.8.0</Version>
<Version>1.8.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions Teleportation/TeleportationConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ public class TeleportationConfiguration : IRocketPluginConfiguration
public double TPACooldown { get; set; }
public double TPADelay { get; set; }
public double TPADuration { get; set; }
public bool AllowCave { get; set; }
public bool AllowCave { get; set; } = true;
public bool ShouldSerializeAllowCave() => !AllowCave;
public bool AllowRaid { get; set; }
public double RaidDuration { get; set; }
public bool AllowCombat { get; set; }
Expand All @@ -23,7 +24,7 @@ public void LoadDefaults()
TPACooldown = 90;
TPADelay = 3;
TPADuration = 90;
AllowCave = false;
AllowCave = true;
AllowRaid = false;
RaidDuration = 30;
AllowCombat = false;
Expand Down

0 comments on commit f2a542a

Please sign in to comment.