Removed unused code, fixed undefined variables

This commit is contained in:
Shoghi Cervantes
2014-10-11 22:22:51 +02:00
parent bf89ea1cf6
commit ebb844fa52
16 changed files with 14 additions and 29 deletions

View File

@@ -868,7 +868,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
public function stopSleep(){
if($this->sleeping instanceof Vector3){
$this->server->getPluginManager()->callEvent($ev = new PlayerBedLeaveEvent($this, $this->getLevel()->getBlock($pos)));
$this->server->getPluginManager()->callEvent($ev = new PlayerBedLeaveEvent($this, $this->getLevel()->getBlock($this->sleeping)));
$this->sleeping = null;