From dcd9dbd1dd61905aebbed4e92102752a50e393f4 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 22 Jan 2014 17:29:23 +0100 Subject: [PATCH] Fixed #1032 undefined index on PrimedTNT entities --- src/world/Entity.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/world/Entity.php b/src/world/Entity.php index 218ed8e69..56310c3ba 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -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();