From f2a542aac4ed40a5250cef187adaa1acf927e8a1 Mon Sep 17 00:00:00 2001
From: MCrow <michalwrona@hotmail.com>
Date: Fri, 27 Sep 2024 19:48:56 +0200
Subject: [PATCH] Set AllowCave to true and hide this option by default

---
 Teleportation/Teleportation.csproj          | 2 +-
 Teleportation/TeleportationConfiguration.cs | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Teleportation/Teleportation.csproj b/Teleportation/Teleportation.csproj
index 2eab9f6..45fb4df 100644
--- a/Teleportation/Teleportation.csproj
+++ b/Teleportation/Teleportation.csproj
@@ -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>
diff --git a/Teleportation/TeleportationConfiguration.cs b/Teleportation/TeleportationConfiguration.cs
index 3eaa080..414b97f 100644
--- a/Teleportation/TeleportationConfiguration.cs
+++ b/Teleportation/TeleportationConfiguration.cs
@@ -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; }
@@ -23,7 +24,7 @@ public void LoadDefaults()
             TPACooldown = 90;
             TPADelay = 3;
             TPADuration = 90;
-            AllowCave = false;
+            AllowCave = true;
             AllowRaid = false;
             RaidDuration = 30;
             AllowCombat = false;