mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 08:17:44 +01:00
Fix unintended change to createBlockData contract
By: md_5 <git@md-5.net>
This commit is contained in:
parent
b6271a3554
commit
a678c41574
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user