mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Fixed some problems with crafting and inventory
This commit is contained in:
parent
81ac026e1f
commit
249c0dc68a
6 changed files with 75 additions and 34 deletions
|
@ -1331,6 +1331,14 @@ public:
|
|||
return value;
|
||||
}
|
||||
|
||||
void setBool(std::string name, bool value)
|
||||
{
|
||||
if(value)
|
||||
set(name, "true");
|
||||
else
|
||||
set(name, "false");
|
||||
}
|
||||
|
||||
void setS32(std::string name, s32 value)
|
||||
{
|
||||
set(name, itos(value));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue