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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user