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

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