accidentally regen again and block state early work

This commit is contained in:
adman
2026-03-03 09:31:44 +01:00
parent 1b36949316
commit 5dfd8fc499
7 changed files with 33666 additions and 33640 deletions
+10
View File
@@ -66,3 +66,13 @@ func LookupBlockByStateId(version string, stateId int32) (block Block, ok bool)
}
return
}
func LookupBlockByName(version string, stateId int32) (block Block, ok bool) {
for _, b := range BlocksForVersion(version) {
if b.MinStateId <= stateId && stateId <= b.MaxStateId {
block = b
ok = true
}
}
return
}