mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-4411: Document use of null for shulker colours
By: md_5 <git@md-5.net>
This commit is contained in:
parent
df9a88905a
commit
ba6edc9b8c
1 changed files with 1 additions and 3 deletions
|
@ -35,8 +35,6 @@ public class CraftShulker extends CraftGolem implements Shulker {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setColor(DyeColor color) {
|
public void setColor(DyeColor color) {
|
||||||
Preconditions.checkArgument(color != null, "color");
|
getHandle().getDataWatcher().set(EntityShulker.COLOR, (color == null) ? 16 : color.getWoolData());
|
||||||
|
|
||||||
getHandle().getDataWatcher().set(EntityShulker.COLOR, color.getWoolData());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue