Fixed not being able to login.

This commit is contained in:
MattBDev 2019-09-15 12:50:37 -04:00
parent 6cff848598
commit 4357c4b049
2 changed files with 5 additions and 10 deletions

View File

@ -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

View File

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