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

@ -404,7 +404,7 @@ class Entity extends Position
}
public function handleWaterMovement(){
if($this->level->handleMaterialAcceleration($this->boundingBox->expand(0, -0.4, 0)->contract(0.001, 0.001, 0.001), 0, $this)){
if($this->level->handleMaterialAcceleration($this->boundingBox->expand(0, -0.4, 0)->contract(0.001, 0.001, 0.001), Material::$water, $this)){
$this->fallDistance = 0;
$this->inWater = true;
if($this->fire > 0){