mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
made swimming work just as before
This commit is contained in:
parent
fd7ee9b30b
commit
d55464a4b0
1 changed files with 1 additions and 1 deletions
|
|
@ -579,7 +579,7 @@ class Entity extends Position
|
|||
for($z = $z0; $z < $z1; ++$z){
|
||||
$pos = new Vector3($x, $y, $z);
|
||||
$b = $this->level->getBlock($pos);
|
||||
if($b->getID() === WATER || $b->getID() === STILL_WATER){
|
||||
if($b->y == ($y1 - 1) && $b->getID() === WATER || $b->getID() === STILL_WATER){
|
||||
$water = true;
|
||||
}
|
||||
if($b != false && $b->isSolid){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue