Fixed ambigious method

This method showed up as ambigious in Eclipse. This should be a fix
This commit is contained in:
Madus 2014-11-29 17:57:48 +01:00
parent f82a80a12b
commit 1636f83b84

View File

@ -8,6 +8,7 @@ import java.util.concurrent.ConcurrentSkipListSet;
import org.bukkit.Bukkit;
import org.bukkit.GameMode;
import org.bukkit.entity.Damageable;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
@ -464,7 +465,8 @@ public class PlayerUtil extends EngineAbstract
public static double getMaxHealth(Player player)
{
return player.getMaxHealth();
Damageable d = (Damageable) player;
return d.getMaxHealth();
}
public static double getMaxHealthDefault(Player player)