Skip to content

Commit 5e83b64

Browse files
committed
Remove breaking change made in (#621)
1 parent 7bd041e commit 5e83b64

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

EXILED/Exiled.API/Features/Items/Firearm.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ public void ClearPreferences()
718718
/// <remarks>
719719
/// For specific reloading logic you also can use <see cref="NormalMagazine"/> for avaible weapons.
720720
/// </remarks>
721-
public void ForceReload()
721+
public void Reload()
722722
{
723723
if (AnimatorReloaderModule == null)
724724
return;
@@ -731,7 +731,7 @@ public void ForceReload()
731731
/// Attempts to reload the firearm with server-side validation.
732732
/// </summary>
733733
/// <returns><see langword="true"/> if the firearm was successfully reloaded. Otherwise, <see langword="false"/>.</returns>
734-
public bool Reload()
734+
public bool TryReload()
735735
{
736736
if (AnimatorReloaderModule == null)
737737
return false;
@@ -743,7 +743,7 @@ public bool Reload()
743743
/// Attempts to unload the firearm with server-side validation.
744744
/// </summary>
745745
/// <returns><see langword="true"/> if the firearm was successfully unload. Otherwise, <see langword="false"/>.</returns>
746-
public bool Unload()
746+
public bool TryUnload()
747747
{
748748
if (AnimatorReloaderModule == null)
749749
return false;
@@ -757,7 +757,7 @@ public bool Unload()
757757
/// <remarks>
758758
/// This only plays the animation and is not guaranteed to result in a successful unload. For server-validated unloading, use <see cref="Unload"/>.
759759
/// </remarks>
760-
public void ForceUnload()
760+
public void Unload()
761761
{
762762
if (AnimatorReloaderModule == null)
763763
return;

EXILED/Exiled.API/Features/Player.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,7 +1811,7 @@ public void TrySetCustomRoleFriendlyFire(string roleTypeId, Dictionary<RoleTypeI
18111811
/// <remarks>
18121812
/// This method does not check if the weapon can actually be reloaded. It only forces the animation and is not guaranteed to result in a successful reload.
18131813
/// </remarks>
1814-
public bool ForceReloadWeapon()
1814+
public bool ReloadWeapon()
18151815
{
18161816
if (CurrentItem is not Firearm firearm || firearm.AnimatorReloaderModule == null)
18171817
{
@@ -1827,7 +1827,7 @@ public bool ForceReloadWeapon()
18271827
/// Forces the player to reload their current weapon.
18281828
/// </summary>
18291829
/// <returns><see langword="true"/> if the firearm was successfully reloaded. Otherwise, <see langword="false"/>.</returns>
1830-
public bool ReloadWeapon()
1830+
public bool TryReloadWeapon()
18311831
{
18321832
if (CurrentItem is not Firearm firearm || firearm.AnimatorReloaderModule == null)
18331833
{
@@ -1844,7 +1844,7 @@ public bool ReloadWeapon()
18441844
/// <remarks>
18451845
/// This method does not check if the weapon can actually be unloaded. It only forces the animation and is not guaranteed to result in a successful unload.
18461846
/// </remarks>
1847-
public bool ForceUnloadWeapon()
1847+
public bool UnloadWeapon()
18481848
{
18491849
if (CurrentItem is not Firearm firearm || firearm.AnimatorReloaderModule == null)
18501850
{
@@ -1860,7 +1860,7 @@ public bool ForceUnloadWeapon()
18601860
/// Forces the player to unload their current weapon.
18611861
/// </summary>
18621862
/// <returns><see langword="true"/> if the firearm was successfully unloaded. Otherwise, <see langword="false"/>.</returns>
1863-
public bool UnloadWeapon()
1863+
public bool TryUnloadWeapon()
18641864
{
18651865
if (CurrentItem is not Firearm firearm || firearm.AnimatorReloaderModule == null)
18661866
{

0 commit comments

Comments
 (0)