mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
update pocketmine/math dependency
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user