void DecoSimple::resolveNodeNames(INodeDefManager *ndef) {
Decoration::resolveNodeNames(ndef);
- if (c_deco == CONTENT_IGNORE) {
+ if (c_deco == CONTENT_IGNORE && !decolist_names.size()) {
c_deco = ndef->getId(deco_name);
if (c_deco == CONTENT_IGNORE) {
errorstream << "DecoSimple::resolveNodeNames: decoration node '"
c_spawnby = ndef->getId(spawnby_name);
if (c_spawnby == CONTENT_IGNORE) {
errorstream << "DecoSimple::resolveNodeNames: spawnby node '"
- << deco_name << "' not defined" << std::endl;
+ << spawnby_name << "' not defined" << std::endl;
nspawnby = -1;
c_spawnby = CONTENT_AIR;
}
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;