mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Plant growth & scheduled updates!
This commit is contained in:
parent
be9676ebe5
commit
dce9b3140a
17 changed files with 237 additions and 123 deletions
|
|
@ -107,6 +107,10 @@ class Utils{
|
|||
public static function writeTriad($value){
|
||||
return substr(pack("N", $value), 1);
|
||||
}
|
||||
|
||||
public static function getRandomUpdateTicks(){
|
||||
return -log(lcg_value())*1365.4; //Poisson distribution (1/(68.27 * 20))
|
||||
}
|
||||
|
||||
public static function writeMetadata($data){
|
||||
$m = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue