From 7403edf1579ec71435a0babfc998138519dcd234 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 7 Jan 2025 18:29:58 +0700 Subject: [PATCH] Bump holo sign survival limits --- .../mc/otm/block/entity/decorative/HoloSignBlockEntity.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/decorative/HoloSignBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/decorative/HoloSignBlockEntity.kt index 5ab2a9764..9f49627bb 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/decorative/HoloSignBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/decorative/HoloSignBlockEntity.kt @@ -97,13 +97,14 @@ class HoloSignBlockEntity(blockPos: BlockPos, blockState: BlockState) : MatteryB override fun loadAdditional(nbt: CompoundTag, registry: HolderLookup.Provider) { super.loadAdditional(nbt, registry) - if (!isLocked) + if (!isLocked) { signText = truncate(signText) + } } companion object { - const val DEFAULT_MAX_NEWLINES = 8 - const val DEFAULT_MAX_LINE_LENGTH = 15 + const val DEFAULT_MAX_NEWLINES = 10 + const val DEFAULT_MAX_LINE_LENGTH = 60 private val NEWLINES = Regex("\r?\n") fun truncate(input: String): String {