0.8.0 partial compatibility

* Not compatible with Creative mode
This commit is contained in:
Shoghi Cervantes 2013-11-23 13:52:13 +01:00
parent 3d53b9eb3a
commit ba7c9503d8
5 changed files with 75 additions and 130 deletions

View file

@ -802,7 +802,7 @@ class Entity extends Position{
}
public function setPosition(Vector3 $pos, $yaw = false, $pitch = false){
if($pos instanceof Position){
if($pos instanceof Position and $this->level !== $pos->level){
$this->level = $pos->level;
$this->server->preparedSQL->entity->setLevel->reset();
$this->server->preparedSQL->entity->setLevel->clear();