update pocketmine/math dependency

This commit is contained in:
Dylan K. Taylor 2020-06-19 11:33:10 +01:00
parent fb4a99a0ef
commit 954e8e6e6f
3 changed files with 6 additions and 6 deletions

8
composer.lock generated
View File

@ -552,12 +552,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/pmmp/Math.git", "url": "https://github.com/pmmp/Math.git",
"reference": "666175cd9a6561217d436902c666405b790a1a86" "reference": "d46310a42ab5535296ded0b9368e5642af723f47"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/pmmp/Math/zipball/666175cd9a6561217d436902c666405b790a1a86", "url": "https://api.github.com/repos/pmmp/Math/zipball/d46310a42ab5535296ded0b9368e5642af723f47",
"reference": "666175cd9a6561217d436902c666405b790a1a86", "reference": "d46310a42ab5535296ded0b9368e5642af723f47",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -579,7 +579,7 @@
"LGPL-3.0" "LGPL-3.0"
], ],
"description": "PHP library containing math related code used in PocketMine-MP", "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", "name": "pocketmine/nbt",

View File

@ -215,7 +215,7 @@ abstract class Entity{
public function __construct(Location $location, ?CompoundTag $nbt = null){ public function __construct(Location $location, ?CompoundTag $nbt = null){
$this->timings = Timings::getEntityTimings($this); $this->timings = Timings::getEntityTimings($this);
$this->temporalVector = new Vector3(); $this->temporalVector = new Vector3(0, 0, 0);
if($this->eyeHeight === null){ if($this->eyeHeight === null){
$this->eyeHeight = $this->height / 2 + 0.1; $this->eyeHeight = $this->height / 2 + 0.1;

View File

@ -87,7 +87,7 @@ class UseItemTransactionData extends TransactionData{
protected function decodeData(PacketSerializer $stream) : void{ protected function decodeData(PacketSerializer $stream) : void{
$this->actionType = $stream->getUnsignedVarInt(); $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); $stream->getBlockPosition($this->blockPos->x, $this->blockPos->y, $this->blockPos->z);
$this->face = $stream->getVarInt(); $this->face = $stream->getVarInt();
$this->hotbarSlot = $stream->getVarInt(); $this->hotbarSlot = $stream->getVarInt();