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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue