mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Don't try to deserialize a null string in legacy method
This commit is contained in:
parent
75252e970b
commit
2e594bd059
1 changed files with 1 additions and 1 deletions
|
@ -1688,7 +1688,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
public void setLine(int index, String line) throws IndexOutOfBoundsException {
|
||||
- getLines()[index] = line;
|
||||
+ this.loadLines();
|
||||
+ this.lines.set(index, io.papermc.paper.adventure.PaperAdventure.LEGACY_SECTION_UXRC.deserialize(line)); // Paper
|
||||
+ this.lines.set(index, line != null ? io.papermc.paper.adventure.PaperAdventure.LEGACY_SECTION_UXRC.deserialize(line) : net.kyori.adventure.text.Component.empty()); // Paper
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue