Let Bukkit decide if a bedspawn is valid or not.

Bukkit's bed fix forces minimum bukkit change.
This commit is contained in:
KHobbits 2013-02-01 02:59:40 +00:00
parent 20b9111495
commit 705b193450
4 changed files with 4 additions and 4 deletions

View file

@ -47,7 +47,7 @@ public class Commandhome extends EssentialsCommand
if ("bed".equalsIgnoreCase(homeName) && user.isAuthorized("essentials.home.bed"))
{
final Location bed = player.getBedSpawnLocation();
if (bed != null && bed.getBlock().getType() == Material.BED_BLOCK)
if (bed != null)
{
user.getTeleport().teleport(bed, charge, TeleportCause.COMMAND);
throw new NoChargeException();