Skip to content

Commit

Permalink
Updated to 13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal78900 committed Jun 26, 2023
1 parent 809dc12 commit 130a000
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions WaitAndChillReborn/EventHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ private static void OnWaitingForPlayers()
Scp096Role.TurnedPlayers.Clear();

Timing.CallDelayed(0.1f, Methods.SetupAvailablePositions);

Timing.CallDelayed(
1f,
() =>
{
LockedPickups.Clear();
foreach (Pickup pickup in Pickup.List)
{
try
Expand All @@ -111,7 +111,7 @@ private static void OnWaitingForPlayers()
PickupSyncInfo info = pickup.Base.NetworkInfo;
info.Locked = true;
pickup.Base.NetworkInfo = info;
pickup.Base.GetComponent<Rigidbody>().isKinematic = true;
LockedPickups.Add(pickup);
}
Expand Down Expand Up @@ -232,7 +232,7 @@ private static void OnRoundStarted()
{
foreach (ThrownProjectile throwable in Object.FindObjectsOfType<ThrownProjectile>())
{
if (throwable.Rb.velocity.sqrMagnitude <= 1f)
if (throwable.TryGetComponent(out Rigidbody rb) && rb.velocity.sqrMagnitude <= 1f)
continue;

throwable.transform.position = Vector3.zero;
Expand All @@ -255,7 +255,7 @@ private static void OnRoundStarted()

if (LobbyTimer.IsRunning)
Timing.KillCoroutines(LobbyTimer);

foreach (Pickup pickup in LockedPickups)
{
try
Expand Down
4 changes: 2 additions & 2 deletions WaitAndChillReborn/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public override void OnDisabled()

public override string Name => "WaitAndChillReborn";
public override string Author => "Michal78900";
public override Version Version => new Version(5, 0, 0);
public override Version RequiredExiledVersion => new Version(6, 0, 0);
public override Version Version => new Version(5, 0, 1);
public override Version RequiredExiledVersion => new Version(7, 0, 5);
}
}
2 changes: 1 addition & 1 deletion WaitAndChillReborn/WaitAndChillReborn.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="EXILED" Version="6.0.0-beta.26" />
<PackageReference Include="EXILED" Version="7.0.5" />
<PackageReference Include="Lib.Harmony" Version="2.2.1" />
</ItemGroup>

Expand Down

0 comments on commit 130a000

Please sign in to comment.