mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
NetworkBinaryStream: Use nullable typehint for putVector3Nullable() instead of default value
the parameter is not optional
This commit is contained in:
parent
95d42b9907
commit
2579438b84
@ -382,7 +382,7 @@ class NetworkBinaryStream extends BinaryStream{
|
||||
*
|
||||
* @param Vector3|null $vector
|
||||
*/
|
||||
public function putVector3Nullable(Vector3 $vector = null){
|
||||
public function putVector3Nullable(?Vector3 $vector){
|
||||
if($vector){
|
||||
$this->putVector3($vector);
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user