From 3e4efbb26ad6f90f37dd462b6f1b1f942b68abff Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Thu, 11 Apr 2013 22:40:18 +0200 Subject: [PATCH] Fixed players not being able to move after being damaged --- src/world/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/Entity.php b/src/world/Entity.php index 93b66aff..48ebd0db 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -647,7 +647,6 @@ class Entity extends stdClass{ $this->server->api->dhandle("entity.event", array("entity" => $this, "event" => 2)); //Ouch! sound } if($this->player instanceof Player){ - $this->player->blocked = true; $this->player->dataPacket(MC_SET_HEALTH, array( "health" => $this->health, )); @@ -676,6 +675,7 @@ class Entity extends stdClass{ $this->server->api->dhandle("entity.event", array("entity" => $this, "event" => 3)); //Entity dead } if($this->player instanceof Player){ + $this->player->blocked = true; $this->server->api->dhandle("player.death", array("name" => $this->name, "cause" => $cause)); }else{ $this->close();