mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Updated PocketMine Math dependency
This commit is contained in:
parent
e48ec9fb71
commit
3d89bf5693
@ -25,7 +25,7 @@
|
||||
"pocketmine/spl": "dev-master#ee32424c100fd11ae7f7b8df7604623fd475f0ec",
|
||||
"pocketmine/binaryutils": "dev-master#03e6851f814aba96487ec64181a6ae948edd9f7a",
|
||||
"pocketmine/nbt": "dev-master#e8fb4c11b291e96c2b44220a5d00f97c1692556e",
|
||||
"pocketmine/math": "dev-master#e0fe8ab70bcacead007cf11dd5b74adc91d94388"
|
||||
"pocketmine/math": "dev-master#1df74f0352309a9c1e6728fa416a3f0493d07b16"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
10
composer.lock
generated
10
composer.lock
generated
@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "e04780cd000c97da7b356dfdf858bf47",
|
||||
"content-hash": "5db3835d3aa7483520dc89b1778bd765",
|
||||
"packages": [
|
||||
{
|
||||
"name": "pocketmine/binaryutils",
|
||||
@ -45,12 +45,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pmmp/Math.git",
|
||||
"reference": "e0fe8ab70bcacead007cf11dd5b74adc91d94388"
|
||||
"reference": "1df74f0352309a9c1e6728fa416a3f0493d07b16"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/pmmp/Math/zipball/e0fe8ab70bcacead007cf11dd5b74adc91d94388",
|
||||
"reference": "e0fe8ab70bcacead007cf11dd5b74adc91d94388",
|
||||
"url": "https://api.github.com/repos/pmmp/Math/zipball/1df74f0352309a9c1e6728fa416a3f0493d07b16",
|
||||
"reference": "1df74f0352309a9c1e6728fa416a3f0493d07b16",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -70,7 +70,7 @@
|
||||
"source": "https://github.com/pmmp/Math/tree/master",
|
||||
"issues": "https://github.com/pmmp/Math/issues"
|
||||
},
|
||||
"time": "2018-03-17T12:35:50+00:00"
|
||||
"time": "2018-03-18T18:01:56+00:00"
|
||||
},
|
||||
{
|
||||
"name": "pocketmine/nbt",
|
||||
|
@ -506,7 +506,7 @@ class Block extends Position implements BlockIds, Metadatable{
|
||||
*
|
||||
* @return Block
|
||||
*/
|
||||
public function getSide($side, $step = 1){
|
||||
public function getSide(int $side, int $step = 1){
|
||||
if($this->isValid()){
|
||||
return $this->getLevel()->getBlock(Vector3::getSide($side, $step));
|
||||
}
|
||||
|
@ -104,10 +104,8 @@ class Position extends Vector3{
|
||||
* @param int $step
|
||||
*
|
||||
* @return Position
|
||||
*
|
||||
* @throws LevelException
|
||||
*/
|
||||
public function getSide($side, $step = 1){
|
||||
public function getSide(int $side, int $step = 1){
|
||||
assert($this->isValid());
|
||||
|
||||
return Position::fromObject(parent::getSide($side, $step), $this->level);
|
||||
|
@ -77,10 +77,8 @@ class WeakPosition extends Position{
|
||||
* @param int $step
|
||||
*
|
||||
* @return WeakPosition
|
||||
*
|
||||
* @throws LevelException
|
||||
*/
|
||||
public function getSide($side, $step = 1){
|
||||
public function getSide(int $side, int $step = 1){
|
||||
assert($this->isValid());
|
||||
|
||||
return WeakPosition::fromObject(parent::getSide($side, $step), $this->level);
|
||||
|
Loading…
x
Reference in New Issue
Block a user