mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-24 08:28:49 -05:00
Duplicate last tile image automatically to all for lua node definitions
This commit is contained in:
parent
fdf6eecd59
commit
ff1ae29f97
@ -529,6 +529,14 @@ static int l_register_node(lua_State *L)
|
||||
break;
|
||||
}
|
||||
}
|
||||
// Copy last value to all remaining textures
|
||||
if(i >= 1){
|
||||
std::string lastname = f.tname_tiles[i-1];
|
||||
while(i < 6){
|
||||
f.tname_tiles[i] = lastname;
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
lua_pop(L, 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user