# One-time correction for existing worlds:
# Current correct base total is 2081.
# If optional mob kills are enabled, total is 2107.

execute unless data storage bordercraft:state {enable_all_mobkills:1b} run scoreboard players set Max bc_border 2081
execute if data storage bordercraft:state {enable_all_mobkills:1b} run scoreboard players set Max bc_border 2107
data modify storage bordercraft:state fix_max_v1 set value 1b
