Level::handleMaterialAcceleration uses materials now

This commit is contained in:
GameHerobrine 2025-07-03 16:55:47 +03:00
parent 5e613268ab
commit 6c7bcf014b
4 changed files with 13 additions and 5 deletions

View file

@ -174,7 +174,7 @@ class ItemEntity extends Entity{
}
public function handleWaterMovement(){
return $this->level->handleMaterialAcceleration($this->boundingBox, 0, $this);
return $this->level->handleMaterialAcceleration($this->boundingBox, Material::$water, $this);
}
public function updateEntityMovement(){