- If collecting the resource doesn't require any items, allow it to be picked up withour a repair tool. Closes #1325 - Fixed deattach timer not being synced (the methods were implemented, but the server never sent any events). Closes #1292 - Fixed ridiculously small mineral colliders that made it hard to hit them with the plasma cutter (body size was not updated when the sprites were changed?).
18 lines
456 B
C#
18 lines
456 B
C#
using Barotrauma.Networking;
|
|
using Lidgren.Network;
|
|
|
|
namespace Barotrauma.Items.Components
|
|
{
|
|
partial class LevelResource : ItemComponent, IServerSerializable
|
|
{
|
|
public void ClientRead(ServerNetObject type, NetBuffer msg, float sendingTime)
|
|
{
|
|
deattachTimer = msg.ReadSingle();
|
|
if (deattachTimer >= DeattachDuration)
|
|
{
|
|
holdable.DeattachFromWall();
|
|
}
|
|
}
|
|
}
|
|
}
|