mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 21:17:00 +01:00
SPIGOT-4411: Document use of null for shulker colours
This commit is contained in:
parent
02518f92ab
commit
6a0c4e1cc2
1 changed files with 1 additions and 3 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue