mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
remove usages of deprecated {} string access, closes #3035
This commit is contained in:
@@ -92,7 +92,7 @@ class QueryHandler{
|
||||
|
||||
public function handle(AdvancedSourceInterface $interface, string $address, int $port, string $packet){
|
||||
$offset = 2;
|
||||
$packetType = ord($packet{$offset++});
|
||||
$packetType = ord($packet[$offset++]);
|
||||
$sessionID = Binary::readInt(substr($packet, $offset, 4));
|
||||
$offset += 4;
|
||||
$payload = substr($packet, $offset);
|
||||
|
Reference in New Issue
Block a user