SPIGOT-4411: Document use of null for shulker colours

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2018-10-06 10:17:06 +10:00
parent df9a88905a
commit ba6edc9b8c

View file

@ -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());
}
}