v0.12.0.3
This commit is contained in:
@@ -1254,10 +1254,7 @@ namespace Barotrauma.Networking
|
||||
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
|
||||
{
|
||||
|
||||
@@ -46,7 +46,11 @@ namespace Barotrauma
|
||||
{
|
||||
get
|
||||
{
|
||||
yield return level.BeaconStation.WorldPosition;
|
||||
if (level.BeaconStation == null)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
yield return level.BeaconStation.WorldPosition;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -812,10 +812,12 @@ namespace Barotrauma.Items.Components
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
---------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user