mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Possible solution for #317 [gh#317]
This commit is contained in:
parent
a8b8427065
commit
4b6e456c65
2 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue