negative max dialog size as infinity

This commit is contained in:
alexcrea 2026-05-21 20:42:53 +02:00
parent 5265d81176
commit a392702df2
Signed by: alexcrea
GPG key ID: E346CD16413450E3
6 changed files with 44 additions and 6 deletions

View file

@ -100,7 +100,9 @@ permission_needed_for_color: true
use_of_color_cost: 0
# Dialogue rename menu make use of dialog menu to allow bigger rename
# You can change the maximum size
# You can also change the maximum size and set it to -1 or less for maximum
#
# This feature only work on paper 1.21.7 or later
#
# At the moment only english is available for this menu... sorry !
#
@ -109,6 +111,12 @@ enable_dialog_rename: false
dialog_rename_max_size: 256
permission_needed_for_dialog_rename: false
# This allows custom anvil to not "guess" the text used for rename but store it in the item
# It will make item stackable only and only if it had used the same rename text
#
# For practical reason. this only work when dialog rename is enabled
dialog_rename_keep_user_text: true
# Override limits for specific enchants
#
# Enchantments not listed here will use the value of default_limit

View file

@ -102,7 +102,9 @@ permission_needed_for_color: true
use_of_color_cost: 0
# Dialogue rename menu make use of dialog menu to allow bigger rename
# You can change the maximum size
# You can also change the maximum size and set it to -1 or less for maximum
#
# This feature only work on paper 1.21.7 or later
#
# At the moment only english is available for this menu... sorry !
#
@ -111,6 +113,12 @@ enable_dialog_rename: false
dialog_rename_max_size: 256
permission_needed_for_dialog_rename: false
# This allows custom anvil to not "guess" the text used for rename but store it in the item
# It will make item stackable only and only if it had used the same rename text
#
# For practical reason. this only work when dialog rename is enabled
dialog_rename_keep_user_text: true
# Override limits for specific enchants
#
# Enchantments not listed here will use the value of default_limit

View file

@ -100,7 +100,9 @@ permission_needed_for_color: true
use_of_color_cost: 0
# Dialogue rename menu make use of dialog menu to allow bigger rename
# You can change the maximum size
# You can also change the maximum size and set it to -1 or less for maximum
#
# This feature only work on paper 1.21.7 or later
#
# At the moment only english is available for this menu... sorry !
#
@ -109,6 +111,12 @@ enable_dialog_rename: false
dialog_rename_max_size: 256
permission_needed_for_dialog_rename: false
# This allows custom anvil to not "guess" the text used for rename but store it in the item
# It will make item stackable only and only if it had used the same rename text
#
# For practical reason. this only work when dialog rename is enabled
dialog_rename_keep_user_text: true
# Override limits for specific enchants
#
# Enchantments not listed here will use the value of default_limit

View file

@ -100,7 +100,9 @@ permission_needed_for_color: true
use_of_color_cost: 0
# Dialogue rename menu make use of dialog menu to allow bigger rename
# You can change the maximum size
# You can also change the maximum size and set it to -1 or less for maximum
#
# This feature only work on paper 1.21.7 or later
#
# At the moment only english is available for this menu... sorry !
#
@ -109,6 +111,12 @@ enable_dialog_rename: false
dialog_rename_max_size: 256
permission_needed_for_dialog_rename: false
# This allows custom anvil to not "guess" the text used for rename but store it in the item
# It will make item stackable only and only if it had used the same rename text
#
# For practical reason. this only work when dialog rename is enabled
dialog_rename_keep_user_text: true
# Override limits for specific enchants
#
# Enchantments not listed here will use the value of default_limit

View file

@ -461,7 +461,7 @@ object ConfigOptions {
.config
.getInt(DIALOG_MAX_SIZE, DEFAULT_DIALOG_MAX_SIZE)
.takeIf { it in DIALOG_MAX_SIZE_RANGE }
?: DEFAULT_DIALOG_MAX_SIZE
?: Int.MAX_VALUE
}
/**

View file

@ -102,7 +102,7 @@ permission_needed_for_color: true
use_of_color_cost: 0
# Dialogue rename menu make use of dialog menu to allow bigger rename
# You can also change the maximum size up to 2147483647
# You can also change the maximum size and set it to -1 or less for maximum
#
# This feature only work on paper 1.21.7 or later
#
@ -113,6 +113,12 @@ enable_dialog_rename: false
dialog_rename_max_size: 256
permission_needed_for_dialog_rename: false
# This allows custom anvil to not "guess" the text used for rename but store it in the item
# It will make item stackable only and only if it had used the same rename text
#
# For practical reason. this only work when dialog rename is enabled
dialog_rename_keep_user_text: true
# Override limits for specific enchants
#
# Enchantments not listed here will use the value of default_limit