From 4ca5b35a6f6a47142d62cd163e95f7b73a5e8054 Mon Sep 17 00:00:00 2001 From: NotZer0Two Date: Mon, 12 Aug 2024 11:39:12 +0200 Subject: [PATCH] Fix adding throw and changing the error that throws --- EXILED/Exiled.API/Features/Map.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EXILED/Exiled.API/Features/Map.cs b/EXILED/Exiled.API/Features/Map.cs index 6b68e7f00..817aebd2a 100644 --- a/EXILED/Exiled.API/Features/Map.cs +++ b/EXILED/Exiled.API/Features/Map.cs @@ -425,13 +425,13 @@ public static void PlayGunSound(Vector3 position, ItemType firearmType, byte max } /// - /// Spawns a Mice inside the . + /// Spawns mice inside the . /// /// The type of mice you want to spawn.. public static void SpawnMice(byte mice = 1) { if (mice > SqueakSpawner.mice.Length) - new OverflowException($"The mice type are from 1 to {SqueakSpawner.mice.Length}"); + throw new ArgumentOutOfRangeException($"Mouse type must be between 1 and {SqueakSpawner.mice.Length}."); SqueakSpawner.NetworksyncSpawn = mice; SqueakSpawner.SyncMouseSpawn(0, SqueakSpawner.NetworksyncSpawn);