Skip to content

Commit e150ec3

Browse files
committed
PHP7.4-Compatibility: Map::sendPacketRange() putting optional parameter after the required one
1 parent 2187d96 commit e150ec3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/map.core.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ public static function getBySerial($serial = false) {
701701
/**
702702
* Send desired packet to a range of players around the client
703703
*/
704-
public static function sendPacketRange($packet = null, $client) {
704+
public static function sendPacketRange($client, $packet = null) {
705705
if ($packet === null) {
706706
return false;
707707
}

core/player.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ public function speech($type, $color, $font, $language, $text) {
11541154
$packet .= $tmpPacket;
11551155
$packet .= "0000";
11561156

1157-
Map::sendPacketRange($packet, $this->client);
1157+
Map::sendPacketRange($this->client, $packet);
11581158
Map::sendHearMessage($this->client, $text);
11591159
}
11601160
Sockets::out($this->client, $packet, false);

0 commit comments

Comments
 (0)