mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 17:52:02 -07:00
Updated to rename revision 02
This commit is contained in:
@@ -20,7 +20,7 @@ public class ItemDye extends Item {
|
||||
return super.getName() + "." + a[i];
|
||||
}
|
||||
|
||||
public boolean a(ItemStack itemstack, EntityHuman entityhuman, World world, int i, int j, int k, int l) {
|
||||
public boolean interactWith(ItemStack itemstack, EntityHuman entityhuman, World world, int i, int j, int k, int l) {
|
||||
if (!entityhuman.d(i, j, k)) {
|
||||
return false;
|
||||
} else {
|
||||
@@ -123,9 +123,10 @@ public class ItemDye extends Item {
|
||||
return;
|
||||
}
|
||||
|
||||
int iColor = new Byte(event.getColor().getData()).intValue();
|
||||
entitysheep.setColor(iColor);
|
||||
i = (byte) event.getColor().getData();
|
||||
// CraftBukkit end
|
||||
|
||||
entitysheep.setColor(i);
|
||||
--itemstack.count;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user