From b711c12d73fbe7d2ca9add675808d607d3872651 Mon Sep 17 00:00:00 2001 From: Joker Date: Tue, 9 May 2023 19:17:06 -0700 Subject: [PATCH] misaka tinybrain moment --- .../EventArgs/Player/ThrowingRequestEventArgs.cs | 11 ++--------- .../Patches/Events/Player/ThrowingRequest.cs | 8 -------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/Exiled.Events/EventArgs/Player/ThrowingRequestEventArgs.cs b/Exiled.Events/EventArgs/Player/ThrowingRequestEventArgs.cs index ed817da098..fa8ed1151f 100644 --- a/Exiled.Events/EventArgs/Player/ThrowingRequestEventArgs.cs +++ b/Exiled.Events/EventArgs/Player/ThrowingRequestEventArgs.cs @@ -17,7 +17,7 @@ namespace Exiled.Events.EventArgs.Player /// /// Contains all information before receving a throwing request. /// - public class ThrowingRequestEventArgs : IPlayerEvent, IDeniableEvent + public class ThrowingRequestEventArgs : IPlayerEvent { /// /// Initializes a new instance of the class. @@ -25,13 +25,11 @@ public class ThrowingRequestEventArgs : IPlayerEvent, IDeniableEvent /// /// /// - /// - public ThrowingRequestEventArgs(Player player, ThrowableItem item, ThrowableNetworkHandler.RequestType request, bool isAllowed = true) + public ThrowingRequestEventArgs(Player player, ThrowableItem item, ThrowableNetworkHandler.RequestType request) { Player = player; Throwable = (Throwable)Item.Get(item); RequestType = (ThrowRequest)request; - IsAllowed = isAllowed; } /// @@ -48,10 +46,5 @@ public ThrowingRequestEventArgs(Player player, ThrowableItem item, ThrowableNetw /// Gets or sets the type of throw being requested. /// public ThrowRequest RequestType { get; set; } - - /// - /// Gets or sets a value indicating whether or not the grenade can be thrown. - /// - public bool IsAllowed { get; set; } = true; } } diff --git a/Exiled.Events/Patches/Events/Player/ThrowingRequest.cs b/Exiled.Events/Patches/Events/Player/ThrowingRequest.cs index dcfacb256d..c9935760c2 100644 --- a/Exiled.Events/Patches/Events/Player/ThrowingRequest.cs +++ b/Exiled.Events/Patches/Events/Player/ThrowingRequest.cs @@ -56,22 +56,14 @@ private static IEnumerable Transpiler(IEnumerable