Skip to content

Commit

Permalink
v0.12.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Regalis11 committed Feb 16, 2021
1 parent 694cdfe commit 0697d7f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1254,10 +1254,7 @@ private void ClientReadServerCommand(IReadMessage inc)
if (bannedClient != null)
{
Log("Client \"" + ClientLogName(sender) + "\" banned \"" + ClientLogName(bannedClient) + "\".", ServerLog.MessageType.ServerMessage);
if (durationSeconds > 0)
{
BanClient(bannedClient, string.IsNullOrEmpty(banReason) ? $"ServerMessage.BannedBy~[initiator]={sender.Name}" : banReason, range, banDuration);
}
BanClient(bannedClient, string.IsNullOrEmpty(banReason) ? $"ServerMessage.BannedBy~[initiator]={sender.Name}" : banReason, range, banDuration);
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ public override IEnumerable<Vector2> SonarPositions
{
get
{
yield return level.BeaconStation.WorldPosition;
if (level.BeaconStation == null)
{
yield break;
}
yield return level.BeaconStation.WorldPosition;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -812,10 +812,12 @@ public override bool AIOperate(float deltaTime, Character character, AIObjective
if (e is Item projectileContainer)
{
var container = projectileContainer.GetComponent<ItemContainer>();
maxProjectileCount += container.Capacity;

int projectiles = projectileContainer.ContainedItems.Count(it => it.Condition > 0.0f);
usableProjectileCount += projectiles;
if (container != null)
{
maxProjectileCount += container.Capacity;
int projectiles = projectileContainer.ContainedItems.Count(it => it.Condition > 0.0f);
usableProjectileCount += projectiles;
}
}
}

Expand Down
9 changes: 9 additions & 0 deletions Barotrauma/BarotraumaShared/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
---------------------------------------------------------------------------------------------------------
v0.12.0.3
---------------------------------------------------------------------------------------------------------

- Fixed inability to permanently ban players who are currently in the server.
- Fixed scrap items failing to load in saves done prior to v0.12.
- Fixed bandage/plastiseal crafting exploit.
- Fixed crashing if a bot tries to operate a turret that's linked to some other item than a loader.

---------------------------------------------------------------------------------------------------------
v0.12.0.2
---------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 0697d7f

Please sign in to comment.