mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-19 17:40:38 +00:00
Possible solution for #317 [gh#317]
This commit is contained in:
parent
a8b8427065
commit
4b6e456c65
@ -326,7 +326,6 @@ class Player{
|
|||||||
public function getSlot($slot){
|
public function getSlot($slot){
|
||||||
$slot = $this->inventory[(int) $slot];
|
$slot = $this->inventory[(int) $slot];
|
||||||
return BlockAPI::getItem($slot[0], $slot[1], $slot[2]);
|
return BlockAPI::getItem($slot[0], $slot[1], $slot[2]);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function sendInventorySlot($s){
|
public function sendInventorySlot($s){
|
||||||
|
@ -30,7 +30,7 @@ class Vector3{
|
|||||||
|
|
||||||
public function __construct($x = 0, $y = 0, $z = 0){
|
public function __construct($x = 0, $y = 0, $z = 0){
|
||||||
if(($x instanceof Vector3) === true){
|
if(($x instanceof Vector3) === true){
|
||||||
self::__construct($x->x, $x->y, $x->z);
|
Vector3::__construct($x->x, $x->y, $x->z);
|
||||||
}else{
|
}else{
|
||||||
$this->x = $x;
|
$this->x = $x;
|
||||||
$this->y = $y;
|
$this->y = $y;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user