From 80d0ec3de0996c39bb21f24088ff07d730f094ef Mon Sep 17 00:00:00 2001 From: Etil <81570777+etil2jz@users.noreply.github.com> Date: Sun, 19 Sep 2021 16:07:58 +0200 Subject: [PATCH] Fix plz :> --- patches/server/0026-Sugarcane-Add-GameProfileLookupEvent.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/0026-Sugarcane-Add-GameProfileLookupEvent.patch b/patches/server/0026-Sugarcane-Add-GameProfileLookupEvent.patch index b46ccee..5eabe80 100644 --- a/patches/server/0026-Sugarcane-Add-GameProfileLookupEvent.patch +++ b/patches/server/0026-Sugarcane-Add-GameProfileLookupEvent.patch @@ -39,7 +39,7 @@ index f61c313195c3d16d996721b2f8cd0d9a10ce1aaf..36ed9f56c18dbb320bdb5bfdc57c1f79 if (property == null) { - profilex = sessionService.fillProfileProperties(profilex, true); + // Sugarcane start -+ org.sugarcanemc.sugarcane.api.events.GameProfileLookupEvent event = new org.sugarcanemc.sugarcane.api.events.GameProfileLookupEvent(!org.bukkit.Bukkit.isPrimaryThread(), profilex.getId(), profilex.getName()); ++ xyz.arthurb.mirai.api.events.GameProfileLookupEvent event = new xyz.arthurb.mirai.api.events.GameProfileLookupEvent(!org.bukkit.Bukkit.isPrimaryThread(), profilex.getId(), profilex.getName()); + org.bukkit.Bukkit.getPluginManager().callEvent(event); + GameProfile eventProfile = event.getGameProfile(); + if (eventProfile != null) {