From 65b899809823a861b64cabcbaffabbf18c9f95c3 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 31 Jan 2021 12:00:02 +1100 Subject: [PATCH] Fix if you join ZS, enter /ref mode, then go to another map, other players can't see your in-game entity (Thanks Scav) --- MCGalaxy/Games/ZombieSurvival/ZSGame.Plugin.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MCGalaxy/Games/ZombieSurvival/ZSGame.Plugin.cs b/MCGalaxy/Games/ZombieSurvival/ZSGame.Plugin.cs index 349d2ba91..e7f5d5358 100644 --- a/MCGalaxy/Games/ZombieSurvival/ZSGame.Plugin.cs +++ b/MCGalaxy/Games/ZombieSurvival/ZSGame.Plugin.cs @@ -70,7 +70,7 @@ namespace MCGalaxy.Games { if (!canSee || p.Game.Referee || target == null) return; ZSData data = TryGet(target); - if (data == null) return; + if (data == null || target.level != Map) return; canSee = !(target.Game.Referee || data.Invisible); }