mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 18:50:51 +01:00
Fix unintended change to createBlockData contract
By: md_5 <git@md-5.net>
This commit is contained in:
parent
b6271a3554
commit
a678c41574
1 changed files with 1 additions and 1 deletions
|
@ -2222,7 +2222,7 @@ public final class CraftServer implements Server {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BlockData createBlockData(org.bukkit.Material material, String data) {
|
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);
|
return CraftBlockData.newData(material, data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue