mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-12 06:43:58 +01:00
Fix instances where Signs have null lines. Addresses BUKKIT-684
By: V10lator <v10lator@myway.de>
This commit is contained in:
parent
9c8b353591
commit
757465f533
@ -35,7 +35,13 @@ public class CraftSign extends CraftBlockState implements Sign {
|
||||
boolean result = super.update(force);
|
||||
|
||||
if (result) {
|
||||
System.arraycopy(lines, 0, sign.lines, 0, lines.length);
|
||||
for(int i = 0; i < 4; i++) {
|
||||
if(lines[i] != null) {
|
||||
sign.lines[i] = lines[i];
|
||||
} else {
|
||||
sign.lines[i] = "";
|
||||
}
|
||||
}
|
||||
sign.update();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user