Fixed items doing crazy things

This commit is contained in:
Shoghi Cervantes
2015-03-29 18:10:02 +02:00
parent d5ba2a72a5
commit c9adc336ee
7 changed files with 69 additions and 58 deletions

View File

@ -44,6 +44,11 @@ class PrimedTNT extends Entity implements Explosive{
public $canCollide = false;
public function attack($damage, EntityDamageEvent $source){
}
protected function initEntity(){
parent::initEntity();
@ -102,8 +107,6 @@ class PrimedTNT extends Entity implements Explosive{
if($this->fuse <= 0){
$this->kill();
$this->explode();
}else{
$this->sendMetadata($this->getViewers());
}
}