summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-10-06 10:17:06 +1000
committermd_5 <git@md-5.net>2018-10-06 10:17:06 +1000
commit6a0c4e1cc2518ad246ad51dc9c06412f3c46371f (patch)
treedf02f430539689c72c6554f45cdd834a17562f90
parent02518f92ab38ab37aa7fd3d8609b9fab9a63af40 (diff)
downloadcraftbukkit-6a0c4e1cc2518ad246ad51dc9c06412f3c46371f.tar
craftbukkit-6a0c4e1cc2518ad246ad51dc9c06412f3c46371f.tar.gz
craftbukkit-6a0c4e1cc2518ad246ad51dc9c06412f3c46371f.tar.lz
craftbukkit-6a0c4e1cc2518ad246ad51dc9c06412f3c46371f.tar.xz
craftbukkit-6a0c4e1cc2518ad246ad51dc9c06412f3c46371f.zip
SPIGOT-4411: Document use of null for shulker colours
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftShulker.java4
1 files changed, 1 insertions, 3 deletions
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());
}
}