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

View File

@@ -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;

View File

@@ -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();