attempt to fix crash when switching world, entity physics in water

This commit is contained in:
GameHerobrine 2024-05-26 13:39:52 +03:00
parent 995ece3571
commit 686f6e1056
5 changed files with 140 additions and 4 deletions

View file

@ -170,6 +170,11 @@ class ItemEntity extends Entity{
return 0;
}
}
public function handleWaterMovement(){
return $this->level->handleMaterialAcceleration($this->boundingBox, 0, $this);
}
public function updateEntityMovement(){
//TODO custom update( method
$this->speedY -= 0.04;