mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
attempt to fix crash when switching world, entity physics in water
This commit is contained in:
parent
995ece3571
commit
686f6e1056
5 changed files with 140 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue