Browse Source

Fixed bug where Chimaera Wing would always teleport to spawn

TfT_02 12 years ago
parent
commit
10e227a5ac
2 changed files with 2 additions and 1 deletions
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/util/ChimaeraWing.java

+ 1 - 0
Changelog.txt

@@ -17,6 +17,7 @@ Version 1.4.01-dev
  = Fixed bug where the PTP cooldown was set improperly
  = Fixed bug where ptp permissions weren't being handled properly
  = Fixed bug where Beast Lore wouldn't work
+ = Fixed bug where Chimaera Wing would always teleport to spawn, even when the player had a valid bed spawn location
 
 Version 1.4.00
  + Added new Child Skill - Smelting!

+ 1 - 1
src/main/java/com/gmail/nossr50/util/ChimaeraWing.java

@@ -44,7 +44,7 @@ public final class ChimaeraWing {
                     }
                 }
 
-                if (player.getBedSpawnLocation() != null && player.getBedSpawnLocation().getBlock().getType() == Material.BED_BLOCK) {
+                if (player.getBedSpawnLocation() != null) {
                     player.teleport(player.getBedSpawnLocation());
                 }
                 else {