Skip to content

Commit

Permalink
chore: prepare to 1.4.7
Browse files Browse the repository at this point in the history
Release-as: 1.4.7
  • Loading branch information
Hypick122 committed Mar 20, 2024
1 parent 0ab7d19 commit 8066a03
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion BetterShotgun/BetterShotgun.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<AssemblyName>Hypick.BetterShotgun</AssemblyName>
<Product>BetterShotgun</Product>
<Version>1.4.6</Version>
<Version>1.4.7</Version>

<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
Expand Down
5 changes: 3 additions & 2 deletions BetterShotgun/Patches/ShotgunItemPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructio
var found = false;
foreach (var instruction in instructions)
{
if (SyncConfig.Instance.DisableFriendlyFire.Value && !found && instruction.ToString().Contains("playerHeldBy"))
if (SyncConfig.Instance.DisableFriendlyFire.Value && !found &&
instruction.ToString().Contains("playerHeldBy"))
{
found = true;
yield return new CodeInstruction(OpCodes.Ldarg_0);
Expand Down Expand Up @@ -202,7 +203,7 @@ private static IEnumerator CheckAmmoAnimation(ShotgunItem __instance)
__instance.isReloading = false;
__instance.ReloadGunEffectsServerRpc(start: false);
}

# endregion

private static IEnumerator ReloadGunAnimationCustom(ShotgunItem __instance)
Expand Down
11 changes: 6 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

## [1.4.6](https://github.com/Hypick122/BetterShotgun/compare/v1.4.5...v1.4.6) (2024-03-16)


### Bug Fixes

* fix getting data from the config ([45bd1da](https://github.com/Hypick122/BetterShotgun/commit/45bd1da736bfd421411c732d19698b497d80ee82))

* Fixed a problem with extracting values from the
config ([45bd1da](https://github.com/Hypick122/BetterShotgun/commit/45bd1da736bfd421411c732d19698b497d80ee82))

### Miscellaneous Chores

* prepare to v1.4.6 ([92939f5](https://github.com/Hypick122/BetterShotgun/commit/92939f5ed8f0d48737f8b9ca8b4203d38fe9873c))
* update SetupKeybindCallbacks ([#30](https://github.com/Hypick122/BetterShotgun/issues/30)) ([8bedb4f](https://github.com/Hypick122/BetterShotgun/commit/8bedb4f49641d7893963dfeed4539be1e8826dfb))
* Changed the setup of the ReloadKeybind key and added an error
exception ([#30](https://github.com/Hypick122/BetterShotgun/issues/30)) ([8bedb4f](https://github.com/Hypick122/BetterShotgun/commit/8bedb4f49641d7893963dfeed4539be1e8826dfb))
* Bump LethalLib from 1.4.2 to 1.4.3
* Bump LethalCompany_InputUtils from 0.6.3 to 0.7.1

## [1.4.5](https://github.com/Hypick122/BetterShotgun/compare/v1.4.4...v1.4.5) (2024-03-13)

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ Available settings in the config:
## Recommended Mods

* NutcrackerFixes
* LCAmmoCheck (this mod is better than the built-in AmmoCheckAnimation)

## Contributing

Expand All @@ -145,9 +144,10 @@ This project is licensed under the [MIT License](https://github.com/Hypick122/Be

## Latest version

### [1.4.6](https://github.com/Hypick122/BetterShotgun/compare/v1.4.5...v1.4.6) (2024-03-16)
### [1.4.7](https://github.com/Hypick122/BetterShotgun/compare/v1.4.6...v1.4.7) (2024-03-20)

* Fixed a problem with extracting values from the config ([45bd1da](https://github.com/Hypick122/BetterShotgun/commit/45bd1da736bfd421411c732d19698b497d80ee82))
* Changed the setup of the ReloadKeybind key and added an error exception ([8bedb4f](https://github.com/Hypick122/BetterShotgun/commit/8bedb4f49641d7893963dfeed4539be1e8826dfb))
* Bump LethalLib from 1.4.2 to 1.4.3
* Bump LethalCompany_InputUtils from 0.6.3 to 0.7.1
* Improved animation checking shells (actually LCAmmoCheck_OLD).
* InfiniteAmmo ([#35](https://github.com/Hypick122/BetterShotgun/issues/35)):
* Changed the number of shells from 2147483647 to 3 so that the shotgun has two rounds if InfiniteAmmo mode is disabled.
* Now, when checking the shells in the shotgun from the very beginning, it will be filled with two shells, not one.
* The ReservedWeaponSlot check has been removed and the name of the shells has been replaced with "Shells".

0 comments on commit 8066a03

Please sign in to comment.