mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-06 18:35:57 +00:00
Merge branch 'master' into release
This commit is contained in:
commit
d9e6f2975a
|
@ -48,7 +48,7 @@ public class Commandhome extends EssentialsCommand
|
|||
if ("bed".equalsIgnoreCase(homeName))
|
||||
{
|
||||
final Location bed = player.getBedSpawnLocation();
|
||||
if (bed != null)
|
||||
if (bed != null && bed.getBlock().getType() == Material.BED_BLOCK)
|
||||
{
|
||||
user.getTeleport().teleport(bed, charge, TeleportCause.COMMAND);
|
||||
throw new NoChargeException();
|
||||
|
|
Loading…
Reference in a new issue