mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
World indices check
This commit is contained in:
parent
551b230b94
commit
636cb0c44c
12 changed files with 197 additions and 40 deletions
|
|
@ -134,7 +134,7 @@ void LevelScreen::updateHotkeys() {
|
|||
|
||||
// TODO: remove in v0.16
|
||||
if (Events::jpressed(keycode::F9)) {
|
||||
blockid_t woodid = level->content->require("base:wood")->rt.id;
|
||||
blockid_t woodid = level->content->requireBlock("base:wood")->rt.id;
|
||||
for (size_t i = 0; i < level->chunks->volume; i++){
|
||||
Chunk* chunk = level->chunks->chunks[i].get();
|
||||
if (chunk) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue