fix gw leave fehler
This commit is contained in:
@@ -94,6 +94,11 @@ namespace ReallifeGamemode.Server.Gangwar
|
|||||||
[RemoteEvent("Gangarea:Leave")]
|
[RemoteEvent("Gangarea:Leave")]
|
||||||
public void RmtEvent_TurfLeave(Player client, string jsonId)
|
public void RmtEvent_TurfLeave(Player client, string jsonId)
|
||||||
{
|
{
|
||||||
|
if(string.IsNullOrEmpty(jsonId))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int id = JsonConvert.DeserializeObject<int>(jsonId);
|
int id = JsonConvert.DeserializeObject<int>(jsonId);
|
||||||
|
|
||||||
foreach (var turf in getTurfs())
|
foreach (var turf in getTurfs())
|
||||||
|
|||||||
Reference in New Issue
Block a user