From 4357c4b04917f5b75b531bfa97a6aa00ca1c9420 Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Sun, 15 Sep 2019 12:50:37 -0400 Subject: [PATCH] Fixed not being able to login. --- .../java/com/sk89q/worldedit/bukkit/BukkitPlayer.java | 6 +++++- .../extension/platform/AbstractPlayerActor.java | 9 --------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java index a403db0a1..23b4a2ae1 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java @@ -21,6 +21,7 @@ package com.sk89q.worldedit.bukkit; import com.boydti.fawe.Fawe; import com.boydti.fawe.bukkit.FaweBukkit; +import com.boydti.fawe.config.Settings; import com.boydti.fawe.object.RunnableVal; import com.boydti.fawe.util.TaskManager; import com.sk89q.util.StringUtil; @@ -70,9 +71,12 @@ public class BukkitPlayer extends AbstractPlayerActor { } public BukkitPlayer(WorldEditPlugin plugin, Player player) { - super(); this.plugin = plugin; this.player = player; + Fawe.get().register(this); + if (Settings.IMP.CLIPBOARD.USE_DISK) { + loadClipboardFromDisk(); + } } @Override diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/AbstractPlayerActor.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/AbstractPlayerActor.java index eaa04112a..eea354038 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/AbstractPlayerActor.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/AbstractPlayerActor.java @@ -19,9 +19,7 @@ package com.sk89q.worldedit.extension.platform; -import com.boydti.fawe.Fawe; import com.boydti.fawe.config.BBC; -import com.boydti.fawe.config.Settings; import com.boydti.fawe.object.exception.FaweException; import com.boydti.fawe.object.task.SimpleAsyncNotifyQueue; import com.boydti.fawe.regions.FaweMaskManager; @@ -102,13 +100,6 @@ public abstract class AbstractPlayerActor implements Actor, Player, Cloneable { } }); - public AbstractPlayerActor() { - Fawe.get().register(this); - if (Settings.IMP.CLIPBOARD.USE_DISK) { - loadClipboardFromDisk(); - } - - } @Override public final Extent getExtent() { return getWorld();