From 45a7038073f25c64f88211e45f8b913595651863 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Sat, 24 Jan 2026 18:00:58 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20correct=20variable=20name?= =?UTF-8?q?=20causing=20build=20failure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix undefined variable error in datapack.bzl line 607 where _ALL_MINECRAFT_VERSIONS was used instead of ALL_MINECRAFT_VERSIONS. This resolves the build failure introduced in commit 0f5322d. --- rule/datapack.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rule/datapack.bzl b/rule/datapack.bzl index 2f7cd6f..e35a4c3 100644 --- a/rule/datapack.bzl +++ b/rule/datapack.bzl @@ -604,7 +604,7 @@ def complete_datapack_config( fail("game_versions 不能为空列表") # 检查每个版本是否在支持的版本列表中 for version in game_versions: - if version not in _ALL_MINECRAFT_VERSIONS: + if version not in ALL_MINECRAFT_VERSIONS: fail("游戏版本 '%s' 不在支持的版本列表中" % version) # 确定目标名称,默认使用当前包名称