Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-4411: Document use of null for shulker colours
Dieser Commit ist enthalten in:
Ursprung
02518f92ab
Commit
6a0c4e1cc2
@ -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());
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren