mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Removed $server constructor arguments because of ServerAPI::request()
This commit is contained in:
@ -74,10 +74,10 @@ class Entity extends stdClass{
|
||||
private $tickCounter;
|
||||
private $speedMeasure = array(0, 0, 0, 0, 0);
|
||||
private $server;
|
||||
function __construct(PocketMinecraftServer $server, $eid, $class, $type = 0, $data = array()){
|
||||
function __construct($eid, $class, $type = 0, $data = array()){
|
||||
$this->fallY = false;
|
||||
$this->fallStart = false;
|
||||
$this->server = $server;
|
||||
$this->server = ServerAPI::request();
|
||||
$this->eid = (int) $eid;
|
||||
$this->type = (int) $type;
|
||||
$this->class = (int) $class;
|
||||
|
@ -45,8 +45,8 @@ class TileEntity extends stdClass{
|
||||
public $metadata;
|
||||
public $closed;
|
||||
private $server;
|
||||
function __construct(PocketMinecraftServer $server, $id, $class, $x, $y, $z, $data = array()){
|
||||
$this->server = $server;
|
||||
function __construct($id, $class, $x, $y, $z, $data = array()){
|
||||
$this->server = ServerAPI::request();
|
||||
$this->normal = true;
|
||||
$this->class = $class;
|
||||
$this->data = $data;
|
||||
|
Reference in New Issue
Block a user