From 371b4f5ee5a20e10d83268fd6186ea71264e481f Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 30 Jan 2018 13:12:35 +1100 Subject: [PATCH] Fixes #905 --- .../java/com/boydti/fawe/nukkit/optimization/FaweNukkit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nukkit/src/main/java/com/boydti/fawe/nukkit/optimization/FaweNukkit.java b/nukkit/src/main/java/com/boydti/fawe/nukkit/optimization/FaweNukkit.java index 87bd1b75..453ae23c 100644 --- a/nukkit/src/main/java/com/boydti/fawe/nukkit/optimization/FaweNukkit.java +++ b/nukkit/src/main/java/com/boydti/fawe/nukkit/optimization/FaweNukkit.java @@ -122,7 +122,7 @@ public class FaweNukkit implements IFawe, Listener { @EventHandler public void onPlayerQuit(PlayerQuitEvent event) { Player player = event.getPlayer(); - FawePlayer fp = FawePlayer.wrap(player); + FawePlayer fp = Fawe.get().getCachedPlayer(player.getName()); if (fp != null) { fp.unregister(); }