mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
extend user block fields check
This commit is contained in:
parent
0ad588fd33
commit
ab53922474
6 changed files with 63 additions and 13 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include "Block.hpp"
|
||||
|
||||
#include <set>
|
||||
#include <utility>
|
||||
|
||||
#include "core_defs.hpp"
|
||||
|
|
@ -141,3 +142,10 @@ void Block::cloneTo(Block& dst) {
|
|||
dst.inventorySize = inventorySize;
|
||||
dst.tickInterval = tickInterval;
|
||||
}
|
||||
|
||||
static std::set<std::string, std::less<>> RESERVED_BLOCK_FIELDS {
|
||||
};
|
||||
|
||||
bool Block::isReservedBlockField(std::string_view view) {
|
||||
return RESERVED_BLOCK_FIELDS.find(view) != RESERVED_BLOCK_FIELDS.end();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue