mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 03:48:01 +01:00
Enforce sign line nullability when setting line with Adventure Method (#9689)
This commit is contained in:
parent
90b4e9c424
commit
e5e00b653b
@ -3313,6 +3313,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+
|
||||
+ @Override
|
||||
+ public void line(final int index, final net.kyori.adventure.text.@NotNull Component line) throws IndexOutOfBoundsException {
|
||||
+ com.google.common.base.Preconditions.checkArgument(line != null, "Line cannot be null");
|
||||
+ this.loadLines();
|
||||
+ this.lines.set(index, line);
|
||||
+ }
|
||||
|
Loading…
Reference in New Issue
Block a user