Skip to content

Commit

Permalink
Fuck you Tnze
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsupermanhd committed Nov 29, 2023
1 parent 35e24d2 commit fe353b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions chunkStorage/filesystemChunkStorage/level.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ func readSaveLevel(path string) (*save.LevelData, error) {
return nil, err
}
defer gf.Close()
d, err := save.ReadLevel(gf)
var r save.Level
c := nbt.NewDecoder(gf)
_, err = c.Decode(&r)
if err != nil {
return nil, err
}
return &d.Data, err
return &r.Data, err
}

func writeSaveLevel(dir string, d save.LevelData) error {
Expand Down

0 comments on commit fe353b3

Please sign in to comment.