Standardize explosion radius terminology

closes #5061
This commit is contained in:
Dylan K. Taylor
2022-12-15 22:43:36 +00:00
parent ba4d038972
commit 3d75094874
3 changed files with 15 additions and 15 deletions

View File

@ -117,7 +117,7 @@ class PrimedTNT extends Entity implements Explosive{
$ev->call();
if(!$ev->isCancelled()){
//TODO: deal with underwater TNT (underwater TNT treats water as if it has a blast resistance of 0)
$explosion = new Explosion(Position::fromObject($this->location->add(0, $this->size->getHeight() / 2, 0), $this->getWorld()), $ev->getForce(), $this);
$explosion = new Explosion(Position::fromObject($this->location->add(0, $this->size->getHeight() / 2, 0), $this->getWorld()), $ev->getRadius(), $this);
if($ev->isBlockBreaking()){
$explosion->explodeA();
}