mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Lua on each mapgen thread (#13092)
This commit is contained in:
parent
d4b107e2e8
commit
3cac17d23e
32 changed files with 1329 additions and 193 deletions
|
@ -236,8 +236,7 @@ size_t Decoration::placeDeco(Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax)
|
|||
|
||||
v3s16 pos(x, y, z);
|
||||
if (generate(mg->vm, &ps, pos, false))
|
||||
mg->gennotify.addEvent(
|
||||
GENNOTIFY_DECORATION, pos, index);
|
||||
mg->gennotify.addDecorationEvent(pos, index);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -249,8 +248,7 @@ size_t Decoration::placeDeco(Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax)
|
|||
|
||||
v3s16 pos(x, y, z);
|
||||
if (generate(mg->vm, &ps, pos, true))
|
||||
mg->gennotify.addEvent(
|
||||
GENNOTIFY_DECORATION, pos, index);
|
||||
mg->gennotify.addDecorationEvent(pos, index);
|
||||
}
|
||||
}
|
||||
} else { // Heightmap decorations
|
||||
|
@ -273,7 +271,7 @@ size_t Decoration::placeDeco(Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax)
|
|||
|
||||
v3s16 pos(x, y, z);
|
||||
if (generate(mg->vm, &ps, pos, false))
|
||||
mg->gennotify.addEvent(GENNOTIFY_DECORATION, pos, index);
|
||||
mg->gennotify.addDecorationEvent(pos, index);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue