Skip to content

Commit

Permalink
[MIRROR] Fixes needless DM_VERSION check in Poly code [MDB IGNORE] (#…
Browse files Browse the repository at this point in the history
…25300) (#928)

* Fixes needless DM_VERSION check in Poly code (#79951)

## About The Pull Request

This is useless now that #79134
(1d6533c5258a208ea4df90d17c20d925db671f1f) is merged and we require 515
for everything now.
## Why It's Good For The Game

They forgot

## Changelog
No effect to players.

* Fixes needless DM_VERSION check in Poly code

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: san7890 <[email protected]>
Co-authored-by: Bloop <[email protected]>
Co-authored-by: Iajret <[email protected]>
  • Loading branch information
5 people authored Dec 4, 2023
1 parent 9a0fb29 commit 8f30d97
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions code/modules/mob/living/basic/pets/parrot/poly.dm
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,7 @@
file_data["longestsurvival"] = longest_survival
file_data["longestdeathstreak"] = longest_deathstreak

var/formatted_data
#if DM_VERSION >= 515
formatted_data = json_encode(file_data, JSON_PRETTY_PRINT)
#else
formatted_data = json_encode(file_data)
#endif

rustg_file_write(formatted_data, file_path)
rustg_file_write(json_encode(file_data, JSON_PRETTY_PRINT), file_path)
memory_saved = TRUE
return TRUE

Expand Down

0 comments on commit 8f30d97

Please sign in to comment.