mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
fixed mob physics on ice
This commit is contained in:
parent
19a66be51a
commit
0469550ca2
4 changed files with 6 additions and 8 deletions
|
|
@ -389,9 +389,9 @@ class Level{
|
|||
for($c = 0; $c <= 20; ++$c){
|
||||
$xyz = mt_rand(0, 0xffffffff) >> 2;
|
||||
$x = $xyz & 0xf;
|
||||
$z = ($xyz >> 8) & 0xf; //TODO might be possible to make some micro optmizations
|
||||
$z = ($xyz >> 8) & 0xf;
|
||||
$y = ($xyz >> 16) & 0x7f;
|
||||
$id = $this->level->fastGetBlockID($cX, $y >> 4, $cZ, $x, $y & 0xf, $z, $index); //$this->level->getBlockID(($cX << 4) + $x, $y, $z + ($cZ << 4));
|
||||
$id = $this->level->fastGetBlockID($cX, $y >> 4, $cZ, $x, $y & 0xf, $z, $index);
|
||||
if(isset(self::$randomUpdateBlocks[$id])){
|
||||
$cl = Block::$class[$id];
|
||||
$cl::onRandomTick($this, ($cX << 4) + $x, $y, $z + ($cZ << 4));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue