From 51ac5a157631447efe3eff54f1244a52a57dd79a Mon Sep 17 00:00:00 2001 From: Goodlyay Date: Wed, 14 Aug 2019 18:21:22 -0700 Subject: [PATCH] Make Entities.Despawn public --- MCGalaxy/Entity/Entities.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MCGalaxy/Entity/Entities.cs b/MCGalaxy/Entity/Entities.cs index 92be0a400..bc08324a6 100644 --- a/MCGalaxy/Entity/Entities.cs +++ b/MCGalaxy/Entity/Entities.cs @@ -154,14 +154,14 @@ namespace MCGalaxy { } } - internal static void Despawn(Player dst, Player other) { + public static void Despawn(Player dst, Player other) { OnEntityDespawnedEvent.Call(other, dst); byte id = other == dst ? SelfID : other.id; dst.Send(Packet.RemoveEntity(id)); if (!Server.Config.TablistGlobal) TabList.Remove(dst, other); } - internal static void Despawn(Player dst, PlayerBot b) { + public static void Despawn(Player dst, PlayerBot b) { OnEntityDespawnedEvent.Call(b, dst); dst.Send(Packet.RemoveEntity(b.id)); if (Server.Config.TablistBots) TabList.Remove(dst, b);