Fixed IndexOutOfBoundsException when modifying signs on Paper 1.17-1.19

This commit is contained in:
Intelli 2023-08-01 17:49:55 -06:00
parent 58f4a76d75
commit 8459181f77

View File

@ -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));
}