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(); }