mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-12-28 17:47:41 +01:00
Fixed IndexOutOfBoundsException when modifying signs on Paper 1.17-1.19
This commit is contained in:
parent
58f4a76d75
commit
8459181f77
@ -8,6 +8,10 @@ public class Paper_v1_17 extends Paper_v1_16 implements PaperInterface {
|
||||
|
||||
@Override
|
||||
public String getLine(Sign sign, int line) {
|
||||
if (line >= 4) {
|
||||
return "";
|
||||
}
|
||||
|
||||
// https://docs.adventure.kyori.net/serializer/
|
||||
return LegacyComponentSerializer.legacySection().serialize(sign.line(line));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user