Replaced array() with []

This commit is contained in:
Shoghi Cervantes
2014-08-28 17:04:22 +02:00
parent 2f2afe2336
commit eab86f5f90
122 changed files with 535 additions and 533 deletions

View File

@@ -989,7 +989,7 @@ abstract class Entity extends Position implements Metadatable{
public function setMotion(Vector3 $motion){
if(!$this->justCreated){
Server::getInstance()->getPluginManager()->callEvent($ev = new EntityMotionEvent($this, $motion));
$this->server->getPluginManager()->callEvent($ev = new EntityMotionEvent($this, $motion));
if($ev->isCancelled()){
return false;
}
@@ -1007,6 +1007,8 @@ abstract class Entity extends Position implements Metadatable{
}
$this->updateMovement();
}
return true;
}
public function isOnGround(){