mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 07:21:51 +00:00
fix generated item's script
This commit is contained in:
parent
3202a11590
commit
4df4209bc5
3 changed files with 9 additions and 5 deletions
|
|
@ -2,9 +2,10 @@
|
|||
|
||||
#include "util/stringutil.hpp"
|
||||
|
||||
ItemDef::ItemDef(const std::string& name) : name(name) {
|
||||
caption = util::id_to_caption(name);
|
||||
description = "";
|
||||
ItemDef::ItemDef(const std::string& name)
|
||||
: name(name),
|
||||
caption(util::id_to_caption(name)),
|
||||
scriptName(name.substr(name.find(':') + 1)) {
|
||||
}
|
||||
void ItemDef::cloneTo(ItemDef& dst) {
|
||||
dst.caption = caption;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue