Fixed commands, added level automatic tick delay, improved biome gradient

This commit is contained in:
Shoghi Cervantes
2015-03-28 01:10:40 +01:00
parent e0522d8b1a
commit 47de616ac5
5 changed files with 72 additions and 16 deletions

View File

@ -62,14 +62,13 @@ class Random{
* @return int
*/
public function nextSignedInt(){
$t = crc32(pack("N", $this->seed));
$t = ((($this->seed * 65535) + 31337) >> 8) + 1337;
if(PHP_INT_SIZE === 8){
$t = $t << 32 >> 32;
}
$this->seed ^= $t;
if(PHP_INT_SIZE === 8){
return $t << 32 >> 32;
}else{
return $t;
}
return $t;
}
/**