1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Decoration: Stop DecoSimple::resolveNodeNames from complaining about no node name if decolist is used

Fix warning message for spawnby nodes

Prevent type-punning warning caused by casting enum to int
This commit is contained in:
kwolekr 2013-11-17 02:22:24 -05:00
parent e396fb2984
commit cca4f09ba1
2 changed files with 5 additions and 5 deletions

View file

@ -522,11 +522,11 @@ int ModApiMapgen::l_place_schematic(lua_State *L)
if (!read_schematic(L, 2, &dschem, getServer(L)))
return 0;
Rotation rot = ROTATE_0;
int rot = ROTATE_0;
if (lua_isstring(L, 3))
string_to_enum(es_Rotation, (int &)rot, std::string(lua_tostring(L, 3)));
string_to_enum(es_Rotation, rot, std::string(lua_tostring(L, 3)));
dschem.rotation = rot;
dschem.rotation = (Rotation)rot;
if (lua_istable(L, 4)) {
int index = 4;