From 58bb7ace206695875bda08b79c6d1e40a96c541f Mon Sep 17 00:00:00 2001 From: winter <99384603+hewoicvewse@users.noreply.github.com> Date: Sun, 1 Jan 2023 01:49:16 +0900 Subject: [PATCH] sdfjhklgf --- src/endpoints/packs/getMapPack.cr | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/endpoints/packs/getMapPack.cr b/src/endpoints/packs/getMapPack.cr index f25f159..dca14c4 100644 --- a/src/endpoints/packs/getMapPack.cr +++ b/src/endpoints/packs/getMapPack.cr @@ -20,9 +20,13 @@ CrystalGauntlet.endpoints["/getGJMapPacks21.php"] = ->(body : String): String { coins = rs.read(Int32) difficulty = rs.read(Int32) col1 = rs.read(String) - col2 = rs.read(String) + col2 = rs.read(String | Nil) level_id = rs.read(Int32) + if !col2 + col2 = col1 + end + if !properties.has_key?(id) properties[id] = { "name" => name,