fixed sheep colors, fixed slipperiness

This commit is contained in:
GameHerobrine 2023-12-30 15:33:23 +03:00
parent 3b65160552
commit 7ecfcacec6
2 changed files with 2 additions and 2 deletions

View file

@ -526,7 +526,7 @@ class Entity extends Position
$horizontalMultiplyFactor = 0.91;
if($this->onGround){
$horizontalMultiplyFactor = 0.54;
$b = $this->level->level->getBlockID(floor($this->x), floor($this->boundingBox->minX) - 1, floor($this->z));
$b = $this->level->level->getBlockID(floor($this->x), floor($this->boundingBox->minY) - 1, floor($this->z));
if($b > 0){
$horizontalMultiplyFactor = StaticBlock::getSlipperiness($b) * 0.91;
}

View file

@ -113,6 +113,6 @@ class Sheep extends Animal{
if(mt_rand(0, 500)){
return 0x0;
}
return 0x0;
return 0x6;
}
}