mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 15:12:23 +01:00
This reverts commit 808eb4c5714da5ac36f4a70653d6b3805060828c.
This commit is contained in:
parent
cfaef5b1cf
commit
82731d0d3d
@ -153,9 +153,7 @@ int MetaDataRef::l_set_int(lua_State *L)
|
||||
MetaDataRef *ref = checkobject(L, 1);
|
||||
std::string name = luaL_checkstring(L, 2);
|
||||
int a = luaL_checkint(L, 3);
|
||||
std::string str;
|
||||
if (a != 0)
|
||||
str = itos(a);
|
||||
std::string str = itos(a);
|
||||
|
||||
Metadata *meta = ref->getmeta(true);
|
||||
if (meta == NULL || str == meta->getString(name))
|
||||
@ -193,9 +191,7 @@ int MetaDataRef::l_set_float(lua_State *L)
|
||||
MetaDataRef *ref = checkobject(L, 1);
|
||||
std::string name = luaL_checkstring(L, 2);
|
||||
float a = readParam<float>(L, 3);
|
||||
std::string str;
|
||||
if (a != 0)
|
||||
str = ftos(a);
|
||||
std::string str = ftos(a);
|
||||
|
||||
Metadata *meta = ref->getmeta(true);
|
||||
if (meta == NULL || str == meta->getString(name))
|
||||
|
Loading…
Reference in New Issue
Block a user