Add deleteDebugStick parameter to fix broken item translation in dragonfly

This commit is contained in:
AkmalFairuz
2025-06-20 19:43:29 +07:00
parent 752b98fb5c
commit 3d2c85b07b
18 changed files with 93 additions and 67 deletions

View File

@@ -18,6 +18,14 @@ var (
//go:embed data/block_states_818.nbt
blockStateData818 []byte
itemMappingLatest = mapping.NewItemMapping(requiredItemList818, ItemVersion818)
blockMappingLatest = mapping.NewBlockMapping(blockStateData818)
itemMappingLatestWithDebugStick = mapping.NewItemMapping(requiredItemList818, ItemVersion818, false)
itemMappingLatestWithoutDebugStick = mapping.NewItemMapping(requiredItemList818, ItemVersion818, true)
blockMappingLatest = mapping.NewBlockMapping(blockStateData818)
)
func itemMappingLatest(deleteDebugStick bool) mapping.Item {
if deleteDebugStick {
return itemMappingLatestWithDebugStick
}
return itemMappingLatestWithoutDebugStick
}