From f250a107e4b9cbfbe6e3cb04ddd89c91f91908d2 Mon Sep 17 00:00:00 2001 From: snowleo Date: Sun, 27 Nov 2011 06:00:58 +0100 Subject: CB#1518 B#1042 Support for Enchantments & Removed broken BedFix (in cb now) --- .../com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'EssentialsSpawn/src/com/earth2me') diff --git a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java index a14f8bb71..57b842c82 100644 --- a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java +++ b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java @@ -3,7 +3,6 @@ package com.earth2me.essentials.spawn; import static com.earth2me.essentials.I18n._; import com.earth2me.essentials.IEssentials; import com.earth2me.essentials.User; -import com.earth2me.essentials.craftbukkit.BedLocationFix; import java.util.logging.Level; import java.util.logging.Logger; import org.bukkit.Location; @@ -32,7 +31,7 @@ public class EssentialsSpawnPlayerListener extends PlayerListener Location home = user.getHome(user.getLocation()); if (home == null) { - home = BedLocationFix.getBedSpawnLocation(user); + home = user.getBedSpawnLocation(); } if (home != null) { @@ -52,7 +51,7 @@ public class EssentialsSpawnPlayerListener extends PlayerListener { final User user = ess.getUser(event.getPlayer()); - if (!user.isNew() || BedLocationFix.getBedSpawnLocation(user) != null) + if (!user.isNew() || user.getBedSpawnLocation() != null) { return; } -- cgit v1.2.3