Fixed #1032 undefined index on PrimedTNT entities

This commit is contained in:
Shoghi Cervantes 2014-01-22 17:29:23 +01:00
parent f4d96e3a9b
commit dcd9dbd1dd

View File

@ -130,6 +130,9 @@ class Entity extends Position{
if($this->type === OBJECT_PAINTING){
$this->isStatic = true;
}elseif($this->type === OBJECT_PRIMEDTNT){
if(!isset($this->data["fuse"])){
$this->data["fuse"] = 0;
}
$this->setHealth(10000000, "generic");
$this->server->schedule(5, array($this, "updateFuse"), array(), true);
$this->update();