@@ -9,10 +9,10 @@
|
||||
public class ItemDye extends Item {
|
||||
|
||||
private static final Map<EnumColor, ItemDye> a = Maps.newEnumMap(EnumColor.class);
|
||||
@@ -19,7 +21,17 @@
|
||||
@@ -20,7 +22,17 @@
|
||||
EntitySheep entitysheep = (EntitySheep) entityliving;
|
||||
|
||||
if (!entitysheep.isSheared() && entitysheep.getColor() != this.b) {
|
||||
if (entitysheep.isAlive() && !entitysheep.isSheared() && entitysheep.getColor() != this.b) {
|
||||
- entitysheep.setColor(this.b);
|
||||
+ // CraftBukkit start
|
||||
+ byte bColor = (byte) this.b.getColorIndex();
|
||||
|
||||
Reference in New Issue
Block a user