From 6a0c4e1cc2518ad246ad51dc9c06412f3c46371f Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 6 Oct 2018 10:17:06 +1000 Subject: SPIGOT-4411: Document use of null for shulker colours --- src/main/java/org/bukkit/craftbukkit/entity/CraftShulker.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftShulker.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftShulker.java index 80bfa1bc..d25b742e 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftShulker.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftShulker.java @@ -35,8 +35,6 @@ public class CraftShulker extends CraftGolem implements Shulker { @Override public void setColor(DyeColor color) { - Preconditions.checkArgument(color != null, "color"); - - getHandle().getDataWatcher().set(EntityShulker.COLOR, color.getWoolData()); + getHandle().getDataWatcher().set(EntityShulker.COLOR, (color == null) ? 16 : color.getWoolData()); } } -- cgit v1.2.3