mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 03:35:33 +00:00
Fixed #1032 undefined index on PrimedTNT entities
This commit is contained in:
parent
f4d96e3a9b
commit
dcd9dbd1dd
@ -130,6 +130,9 @@ class Entity extends Position{
|
|||||||
if($this->type === OBJECT_PAINTING){
|
if($this->type === OBJECT_PAINTING){
|
||||||
$this->isStatic = true;
|
$this->isStatic = true;
|
||||||
}elseif($this->type === OBJECT_PRIMEDTNT){
|
}elseif($this->type === OBJECT_PRIMEDTNT){
|
||||||
|
if(!isset($this->data["fuse"])){
|
||||||
|
$this->data["fuse"] = 0;
|
||||||
|
}
|
||||||
$this->setHealth(10000000, "generic");
|
$this->setHealth(10000000, "generic");
|
||||||
$this->server->schedule(5, array($this, "updateFuse"), array(), true);
|
$this->server->schedule(5, array($this, "updateFuse"), array(), true);
|
||||||
$this->update();
|
$this->update();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user