mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add block particles property
This commit is contained in:
parent
24af455bf0
commit
0eeb6b6eb2
11 changed files with 180 additions and 23 deletions
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include "core_defs.hpp"
|
||||
#include "data/StructLayout.hpp"
|
||||
#include "presets/ParticlesPreset.hpp"
|
||||
#include "util/stringutil.hpp"
|
||||
|
||||
std::string to_string(BlockModel model) {
|
||||
|
|
@ -142,6 +143,7 @@ void Block::cloneTo(Block& dst) {
|
|||
dst.inventorySize = inventorySize;
|
||||
dst.tickInterval = tickInterval;
|
||||
dst.overlayTexture = overlayTexture;
|
||||
dst.particles = std::make_unique<ParticlesPreset>(*particles);
|
||||
}
|
||||
|
||||
static std::set<std::string, std::less<>> RESERVED_BLOCK_FIELDS {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue