mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
update pocketmine/math dependency
This commit is contained in:
parent
fb4a99a0ef
commit
954e8e6e6f
8
composer.lock
generated
8
composer.lock
generated
@ -552,12 +552,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pmmp/Math.git",
|
||||
"reference": "666175cd9a6561217d436902c666405b790a1a86"
|
||||
"reference": "d46310a42ab5535296ded0b9368e5642af723f47"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/pmmp/Math/zipball/666175cd9a6561217d436902c666405b790a1a86",
|
||||
"reference": "666175cd9a6561217d436902c666405b790a1a86",
|
||||
"url": "https://api.github.com/repos/pmmp/Math/zipball/d46310a42ab5535296ded0b9368e5642af723f47",
|
||||
"reference": "d46310a42ab5535296ded0b9368e5642af723f47",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -579,7 +579,7 @@
|
||||
"LGPL-3.0"
|
||||
],
|
||||
"description": "PHP library containing math related code used in PocketMine-MP",
|
||||
"time": "2020-06-15T21:21:46+00:00"
|
||||
"time": "2020-06-19T10:25:24+00:00"
|
||||
},
|
||||
{
|
||||
"name": "pocketmine/nbt",
|
||||
|
@ -215,7 +215,7 @@ abstract class Entity{
|
||||
public function __construct(Location $location, ?CompoundTag $nbt = null){
|
||||
$this->timings = Timings::getEntityTimings($this);
|
||||
|
||||
$this->temporalVector = new Vector3();
|
||||
$this->temporalVector = new Vector3(0, 0, 0);
|
||||
|
||||
if($this->eyeHeight === null){
|
||||
$this->eyeHeight = $this->height / 2 + 0.1;
|
||||
|
@ -87,7 +87,7 @@ class UseItemTransactionData extends TransactionData{
|
||||
|
||||
protected function decodeData(PacketSerializer $stream) : void{
|
||||
$this->actionType = $stream->getUnsignedVarInt();
|
||||
$this->blockPos = new Vector3();
|
||||
$this->blockPos = new Vector3(0, 0, 0);
|
||||
$stream->getBlockPosition($this->blockPos->x, $this->blockPos->y, $this->blockPos->z);
|
||||
$this->face = $stream->getVarInt();
|
||||
$this->hotbarSlot = $stream->getVarInt();
|
||||
|
Loading…
x
Reference in New Issue
Block a user