mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
improve blocks.set performance
This commit is contained in:
parent
73f589d479
commit
6af74fc219
6 changed files with 18 additions and 14 deletions
|
|
@ -119,7 +119,7 @@ inline bool is_replaceable_at(const Storage& chunks, int32_t x, int32_t y, int32
|
|||
/// @param z block position Z
|
||||
/// @param id new block id
|
||||
/// @param state new block state
|
||||
void set(
|
||||
bool set(
|
||||
Chunks& chunks,
|
||||
int32_t x,
|
||||
int32_t y,
|
||||
|
|
@ -135,7 +135,7 @@ void set(
|
|||
/// @param z block position Z
|
||||
/// @param id new block id
|
||||
/// @param state new block state
|
||||
void set(
|
||||
bool set(
|
||||
GlobalChunks& chunks,
|
||||
int32_t x,
|
||||
int32_t y,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue