mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 21:33:49 -07:00
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:
@@ -188,7 +188,7 @@ public class ItemDye extends Item {
|
||||
return false;
|
||||
}
|
||||
|
||||
i = (byte) event.getColor().getData();
|
||||
i = (byte) event.getColor().getWoolData();
|
||||
// CraftBukkit end
|
||||
|
||||
entitysheep.setColor(i);
|
||||
|
Reference in New Issue
Block a user