WorldStyler icon indicating copy to clipboard operation
WorldStyler copied to clipboard

World does not save the blocks placed using world styler.

Open rjworks opened this issue 5 years ago • 2 comments

I use world styler's block iterator and utils to place blocks on my server and when the server restarts, the blocks I placed are gone. i checked if it was the auto save, but no because blocks placed using my hand are saved on restart

$iterator = new BlockIterator($level); $iterator1->moveTo($x, $y, $z); $iterator1->currentSubChunk->setBlock($x & 0x0f, $y & 0x0f, $z & 0x0f, 16, 0); if ($level1 instanceof Level) { Utils::updateChunks($level1, $posMin->x >> 4, $posMax->x >> 4, $posMin->z >> 4, $posMax->z >> 4); }

rjworks avatar Jul 03 '20 15:07 rjworks

World styler's API doesn't save the chunks by default. You need to do it yourself.

https://github.com/Muqsit/WorldStyler/blob/master/src/muqsit/worldstyler/utils/Utils.php#L111-L117

jasonw4331 avatar Jul 09 '20 03:07 jasonw4331

World styler's API doesn't save the chunks by default. You need to do it yourself.

https://github.com/Muqsit/WorldStyler/blob/master/src/muqsit/worldstyler/utils/Utils.php#L111-L117

Can I just uncomment that then?

rjworks avatar Jul 09 '20 04:07 rjworks