mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +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){
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ class ItemEntity extends Entity{
|
|||
}
|
||||
|
||||
public function handleWaterMovement(){
|
||||
return $this->level->handleMaterialAcceleration($this->boundingBox, 0, $this);
|
||||
return $this->level->handleMaterialAcceleration($this->boundingBox, Material::$water, $this);
|
||||
}
|
||||
|
||||
public function updateEntityMovement(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue