Fixed misuse of kill() and close() when deleting entities (#1490)

This commit is contained in:
Dylan K. Taylor
2017-11-04 19:30:48 +00:00
committed by GitHub
parent e84ab8fec2
commit eab7b93483
10 changed files with 27 additions and 13 deletions

View File

@ -91,7 +91,7 @@ class PrimedTNT extends Entity implements Explosive{
$this->fuse -= $tickDiff;
if($this->fuse <= 0){
$this->kill();
$this->flagForDespawn();
$this->explode();
}
}