mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
remove usages of deprecated {} string access, closes #3035
This commit is contained in:
@ -37,7 +37,7 @@ class UnknownPacket extends DataPacket{
|
||||
|
||||
public function pid(){
|
||||
if(strlen($this->payload ?? "") > 0){
|
||||
return ord($this->payload{0});
|
||||
return ord($this->payload[0]);
|
||||
}
|
||||
return self::NETWORK_ID;
|
||||
}
|
||||
|
Reference in New Issue
Block a user