fix gw leave fehler

This commit is contained in:
hydrant
2021-04-19 01:25:15 +02:00
parent 60e97695b5
commit ac91ceb1f3

View File

@@ -94,6 +94,11 @@ namespace ReallifeGamemode.Server.Gangwar
[RemoteEvent("Gangarea:Leave")]
public void RmtEvent_TurfLeave(Player client, string jsonId)
{
if(string.IsNullOrEmpty(jsonId))
{
return;
}
int id = JsonConvert.DeserializeObject<int>(jsonId);
foreach (var turf in getTurfs())