mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
Fix instances where Signs have null lines. Addresses BUKKIT-684
This commit is contained in:
@@ -1302,6 +1302,9 @@ public class NetServerHandler extends NetHandler {
|
||||
if (!event.isCancelled()) {
|
||||
for (int l = 0; l < 4; ++l) {
|
||||
tileentitysign1.lines[l] = event.getLine(l);
|
||||
if(tileentitysign1.lines[l] == null) {
|
||||
tileentitysign1.lines[l] = "";
|
||||
}
|
||||
}
|
||||
tileentitysign1.isEditable = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user