Merge pull request #190 from magnusulf/patch-1

Fixed ambigious method
This commit is contained in:
Olof Larsson 2015-01-04 12:11:25 +01:00
commit 014815d227

View File

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