1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-20 10:43:12 +01:00

Fixes for Treasures config & Chimera Wing.

This commit is contained in:
GJ
2012-02-29 09:59:25 -05:00
parent a2b3e6fa83
commit 985e69c529
4 changed files with 4 additions and 163 deletions

View File

@@ -33,9 +33,7 @@ public class Item {
{
ItemStack inhand = player.getItemInHand();
if(LoadProperties.chimaeraWingEnable && inhand.getTypeId() == LoadProperties.chimaeraId)
{
chimaerawing(player, plugin);
}
}
public static void chimaerawing(Player player, Plugin plugin)
@@ -67,7 +65,7 @@ public class Item {
}
}
if(player.getBedSpawnLocation() != null)
if(player.getBedSpawnLocation() != null && player.getBedSpawnLocation().getBlock().getType().equals(Material.BED_BLOCK))
player.teleport(player.getBedSpawnLocation());
else
player.teleport(player.getWorld().getSpawnLocation());