mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Fixed bad values assigned to LongTags
PhpStorm you bitch... why didn't you tell me these were a problem?!
This commit is contained in:
@ -238,7 +238,7 @@ class McRegion extends BaseLevelProvider{
|
||||
return $isValid;
|
||||
}
|
||||
|
||||
public static function generate(string $path, string $name, $seed, string $generator, array $options = []){
|
||||
public static function generate(string $path, string $name, int $seed, string $generator, array $options = []){
|
||||
if(!file_exists($path)){
|
||||
mkdir($path, 0777, true);
|
||||
}
|
||||
@ -257,7 +257,7 @@ class McRegion extends BaseLevelProvider{
|
||||
"SpawnZ" => new IntTag("SpawnZ", 256),
|
||||
"version" => new IntTag("version", static::getPcWorldFormatVersion()),
|
||||
"DayTime" => new IntTag("DayTime", 0),
|
||||
"LastPlayed" => new LongTag("LastPlayed", microtime(true) * 1000),
|
||||
"LastPlayed" => new LongTag("LastPlayed", (int) (microtime(true) * 1000)),
|
||||
"RandomSeed" => new LongTag("RandomSeed", $seed),
|
||||
"SizeOnDisk" => new LongTag("SizeOnDisk", 0),
|
||||
"Time" => new LongTag("Time", 0),
|
||||
|
Reference in New Issue
Block a user