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

@ -210,7 +210,6 @@ class Level{
$appliedVelocity = false;
$velocityVec = new Vector3(0, 0, 0);
for($x = $minX; $x < $maxX; ++$x){
for($y = $minY; $y < $maxY; ++$y){
for($z = $minZ; $z < $maxZ; ++$z){
@ -221,6 +220,7 @@ class Level{
$appliedVelocity = true;
Block::$class[$block]::addVelocityToEntity($this, $x, $y, $z, $entity, $velocityVec);
}
}
}
}