fix: boostedcreatures for 13.40 (#307)

* boostedcreatures fix for 13.40

Fixes the boosted boss/creature display on the login page for 13.40 running the default cipsoft client.

* Adjust version

---------

Co-authored-by: slawkens <slawkens@gmail.com>
This commit is contained in:
Goosey
2025-06-14 17:58:08 +04:00
committed by GitHub
parent b8abc11b96
commit 577037becc

View File

@@ -88,8 +88,8 @@ switch ($action) {
case 'boostedcreature': case 'boostedcreature':
$clientVersion = (int)setting('core.client'); $clientVersion = (int)setting('core.client');
// 14.00 and up // 13.40 and up
if ($clientVersion >= 1400) { if ($clientVersion >= 1340) {
$creatureBoost = $db->query("SELECT * FROM " . $db->tableName('boosted_creature'))->fetchAll(); $creatureBoost = $db->query("SELECT * FROM " . $db->tableName('boosted_creature'))->fetchAll();
$bossBoost = $db->query("SELECT * FROM " . $db->tableName('boosted_boss'))->fetchAll(); $bossBoost = $db->query("SELECT * FROM " . $db->tableName('boosted_boss'))->fetchAll();
die(json_encode([ die(json_encode([