Skip to content

Commit

Permalink
fix hash deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bauumm committed Oct 24, 2024
1 parent a853c7b commit 095b564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game_handler/replay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ end
---@return love.CompressedData
function replay:get_hash()
local data = self:_get_compressed()
return love.data.encode("string", "hex", love.data.hash("sha256", data)), data
return love.data.encode("string", "hex", love.data.hash("string", "sha256", data)), data
end

---saves the replay into a file the data to write can optionally be specified if already gotten
Expand Down

0 comments on commit 095b564

Please sign in to comment.