Fix unintended change to createBlockData contract

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2023-06-12 21:09:17 +10:00
parent b6271a3554
commit a678c41574

View file

@ -2222,7 +2222,7 @@ public final class CraftServer implements Server {
@Override
public BlockData createBlockData(org.bukkit.Material material, String data) {
Preconditions.checkArgument(material != null, "Material cannot be null");
Preconditions.checkArgument(material != null || data != null, "Must provide one of material or data");
return CraftBlockData.newData(material, data);
}