mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-09 11:31:49 +00:00
Fixed Entity updates getting duplicated and negated
This commit is contained in:
parent
70b86061f6
commit
49d2723806
@ -111,7 +111,6 @@ class Entity extends stdClass{
|
|||||||
case ENTITY_PLAYER:
|
case ENTITY_PLAYER:
|
||||||
$this->player = $this->data["player"];
|
$this->player = $this->data["player"];
|
||||||
$this->setHealth($this->health, "generic");
|
$this->setHealth($this->health, "generic");
|
||||||
$this->server->schedule(5, array($this, "update"), array(), true);
|
|
||||||
break;
|
break;
|
||||||
case ENTITY_ITEM:
|
case ENTITY_ITEM:
|
||||||
if($data["item"] instanceof Item){
|
if($data["item"] instanceof Item){
|
||||||
@ -126,7 +125,7 @@ class Entity extends stdClass{
|
|||||||
break;
|
break;
|
||||||
case ENTITY_MOB:
|
case ENTITY_MOB:
|
||||||
$this->setHealth($this->data["Health"], "generic");
|
$this->setHealth($this->data["Health"], "generic");
|
||||||
//$this->server->schedule(5, array($this, "update"), array(), true);
|
$this->server->schedule(5, array($this, "update"), array(), true);
|
||||||
//$this->setName((isset($mobs[$this->type]) ? $mobs[$this->type]:$this->type));
|
//$this->setName((isset($mobs[$this->type]) ? $mobs[$this->type]:$this->type));
|
||||||
break;
|
break;
|
||||||
case ENTITY_OBJECT:
|
case ENTITY_OBJECT:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user