mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +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){
|
||||
$slot = $this->inventory[(int) $slot];
|
||||
return BlockAPI::getItem($slot[0], $slot[1], $slot[2]);
|
||||
return true;
|
||||
}
|
||||
|
||||
public function sendInventorySlot($s){
|
||||
|
@ -30,7 +30,7 @@ class Vector3{
|
||||
|
||||
public function __construct($x = 0, $y = 0, $z = 0){
|
||||
if(($x instanceof Vector3) === true){
|
||||
self::__construct($x->x, $x->y, $x->z);
|
||||
Vector3::__construct($x->x, $x->y, $x->z);
|
||||
}else{
|
||||
$this->x = $x;
|
||||
$this->y = $y;
|
||||
|
Loading…
x
Reference in New Issue
Block a user