public void Unclaim() { if (InteractableBed == null || !BarricadeManager.tryGetInfo(InteractableBed.transform, out byte x, out byte y, out ushort plant, out ushort index, out BarricadeRegion region)) { return; } if (plant == 65535) { /*BarricadeManager.instance.channel.send("tellClaimBed", ESteamCall.ALL, x, y, BarricadeManager.BARRICADE_REGIONS, ESteamPacket.UPDATE_RELIABLE_BUFFER, new object[] * { * x, * y, * plant, * index, * CSteamID.Nil * }); */ BarricadeManager.ReceiveBedClaimState(x, y, plant, index, CSteamID.Nil); } else { /*BarricadeManager.instance.channel.send("tellClaimBed", ESteamCall.ALL, ESteamPacket.UPDATE_RELIABLE_BUFFER, new object[] * { * x, * y, * plant, * index, * CSteamID.Nil * });*/ BarricadeManager.ReceiveBedClaimState(x, y, plant, index, CSteamID.Nil); } BitConverter.GetBytes(InteractableBed.owner.m_SteamID).CopyTo(region.barricades[index].barricade.state, 0); }