From ba6edc9b8c502b296262050e41fe17533727df48 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 6 Oct 2018 10:17:06 +1000 Subject: [PATCH] SPIGOT-4411: Document use of null for shulker colours By: md_5 --- .../main/java/org/bukkit/craftbukkit/entity/CraftShulker.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftShulker.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftShulker.java index 80bfa1bc5d..d25b742e75 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftShulker.java +++ b/paper-server/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()); } }