mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Level::handleMaterialAcceleration uses materials now
This commit is contained in:
parent
5e613268ab
commit
6c7bcf014b
4 changed files with 13 additions and 5 deletions
|
|
@ -404,7 +404,7 @@ class Entity extends Position
|
|||
}
|
||||
|
||||
public function handleWaterMovement(){
|
||||
if($this->level->handleMaterialAcceleration($this->boundingBox->expand(0, -0.4, 0)->contract(0.001, 0.001, 0.001), 0, $this)){
|
||||
if($this->level->handleMaterialAcceleration($this->boundingBox->expand(0, -0.4, 0)->contract(0.001, 0.001, 0.001), Material::$water, $this)){
|
||||
$this->fallDistance = 0;
|
||||
$this->inWater = true;
|
||||
if($this->fire > 0){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue