Use getWoolData since old method was deprecated.

This commit is contained in:
Olof Larsson 2016-11-19 10:48:28 +01:00
parent aec2e4372e
commit c8fa93a656
No known key found for this signature in database
GPG Key ID: BBEF14F97DA52474

View File

@ -847,9 +847,9 @@ public class MUtil
@SuppressWarnings("deprecation")
public static ChatColor getChatColor(DyeColor dyeColor)
{
int dyeColorCode = dyeColor.getData();
int woolColorCode = dyeColor.getWoolData();
switch (dyeColorCode)
switch (woolColorCode)
{
case 0x0: return ChatColor.WHITE;
case 0x1: return ChatColor.GOLD;