Cvolton / GMDprivateServer

Geometry Dash Private Server
GNU General Public License v3.0
394 stars 291 forks source link

1.4 - 2.0 magic #1022

Open arti-max opened 1 year ago

arti-max commented 1 year ago

Please give me a code that will normally read ; from LevelString and add counted ; as a number of objects in the database

arti-max commented 1 year ago

for those who do not work in magic in versions below 2.1, insert this code into uploadGJLevel $objects = !empty($_POST["objects"]) ? ExploitPatch::remove($_POST["objects"]) : count(explode(";", ExploitPatch::remove($_POST["levelString"]))) - 2; instead of $objects = !empty($_POST["objects"]) ? ExploitPatch::remove($_POST["objects"]) : 0;