mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
New direct block method, better block placement sending
This commit is contained in:
parent
722eb6d1f9
commit
24ba7cbbd1
7 changed files with 72 additions and 46 deletions
|
|
@ -134,7 +134,7 @@ class SuperflatGenerator implements LevelGenerator{
|
|||
for($x = $start; $x <= $end; ++$x){
|
||||
for($z = $start; $z <= $end; ++$z){
|
||||
if(floor(sqrt(pow($x - 128, 2) + pow($z - 128, 2))) <= $spawn[0]){
|
||||
$this->level->setBlockRaw(new Vector3($x, $this->floorLevel - 1, $z), $spawn[1]);
|
||||
$this->level->setBlockRaw(new Vector3($x, $this->floorLevel - 1, $z), $spawn[1], null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue