From e3c55d7f81d08169a6c5cf15d7cdc652ac3b7330 Mon Sep 17 00:00:00 2001 From: Mikhail Reznichenko Date: Sun, 29 Dec 2024 16:55:18 +0300 Subject: [PATCH] fix items dropping --- Handlers/Player.cs | 1 + VeryUsualDay.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Handlers/Player.cs b/Handlers/Player.cs index a867d6b..532f35f 100644 --- a/Handlers/Player.cs +++ b/Handlers/Player.cs @@ -147,6 +147,7 @@ public static void OnHurting(HurtingEventArgs ev) public static void OnDying(DyingEventArgs ev) { + if (!VeryUsualDay.Instance.IsEnabledInRound) return; if (VeryUsualDay.Instance.CurrentCode == VeryUsualDay.Codes.Green || VeryUsualDay.Instance.CurrentCode == VeryUsualDay.Codes.Emerald) { diff --git a/VeryUsualDay.cs b/VeryUsualDay.cs index 205b38a..839c848 100644 --- a/VeryUsualDay.cs +++ b/VeryUsualDay.cs @@ -29,7 +29,7 @@ public class VeryUsualDay : Plugin public override string Author => "JustMarfix"; public override string Name => "VeryUsualDay (FX Version)"; - public override Version Version => new Version(5, 3, 0); + public override Version Version => new Version(5, 3, 1); public bool IsEnabledInRound { get; set; } public bool IsLunchtimeActive { get; set; }