Bump holo sign survival limits
This commit is contained in:
parent
9621356682
commit
7403edf157
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user