ported leaf decay logic from b1.7.3

This commit is contained in:
GameHerobrine 2026-01-04 10:54:03 +03:00
parent 8555a06dda
commit 1272932257
3 changed files with 62 additions and 20 deletions

View file

@ -77,7 +77,7 @@ abstract class Projectile extends Entity{
$this->lastSpeedY = $this->speedY;
$this->lastSpeedZ = $this->speedZ;
$this->needsUpdate = true;
$this->handleWaterMovement(); //TODO: maybe just call parent::update(); ?
$this->handleWaterMovement();
if($this->fire > 0){
if(!$this->isImmuneToFire){
if(($this->fire % 20) == 0){