Skip to content

Commit

Permalink
fix dofus3 channel
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed Dec 3, 2024
1 parent c31d4d6 commit b301af0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestMain(m *testing.M) {
}
TestingLangs = ParseRawLanguages(path)
TestingData = ParseRawData(path)
err = LoadPersistedElements(filepath.Join(path, "persistent"), "main")
err = LoadPersistedElements(filepath.Join(path, "persistent"), "main", 2)
if err != nil {
log.Fatal(err)
}
Expand Down
3 changes: 3 additions & 0 deletions parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ var (
func LoadPersistedElements(persistenceDir string, release string, majorVersion int) error {
var elements []string
var types []string
if release == "dofus3" {
release = "main"
}
dofus3prefix := ""
if majorVersion == 3 {
dofus3prefix = ".dofus3"
Expand Down

0 comments on commit b301af0

Please sign in to comment.