Update calls to DyeColor getData and getByData. Addresses BUKKIT-2786

These two methods are now deprecated and replaced by the strictly
equivalent calls using wool data.
This commit is contained in:
Wesley Wolfe
2013-01-05 16:45:34 -06:00
parent baaf8e1d86
commit 182681e384
4 changed files with 7 additions and 7 deletions

View File

@@ -30,10 +30,10 @@ public class CraftWolf extends CraftTameableAnimal implements Wolf {
}
public DyeColor getCollarColor() {
return DyeColor.getByData((byte) getHandle().getCollarColor());
return DyeColor.getByWoolData((byte) getHandle().getCollarColor());
}
public void setCollarColor(DyeColor color) {
getHandle().setCollarColor(color.getData());
getHandle().setCollarColor(color.getWoolData());
}
}