diff --git a/doc/en/scripting/builtins/libassets.md b/doc/en/scripting/builtins/libassets.md
index b39239a5b..6451995b9 100644
--- a/doc/en/scripting/builtins/libassets.md
+++ b/doc/en/scripting/builtins/libassets.md
@@ -5,6 +5,13 @@ A library for working with audio/visual assets.
## Functions
```lua
+-- Requests background texture loading
+assets.request_texture(
+ -- Image file
+ filename: string,
+ -- Texture name after loading
+ name: string,
+)
-- Loads a texture
assets.load_texture(
-- Array of bytes of an image file
diff --git a/doc/en/scripting/ui.md b/doc/en/scripting/ui.md
index 968a11929..04784b449 100644
--- a/doc/en/scripting/ui.md
+++ b/doc/en/scripting/ui.md
@@ -167,10 +167,11 @@ Properties:
Properties:
-| Name | Type | Read | Write | Description |
-| ------ | ------ | ---- | ----- | ---------------- |
-| src | string | yes | yes | texture name |
-| region | vec4 | yes | yes | image sub-region |
+| Name | Type | Read | Write | Description |
+| -------- | ------ | ---- | ----- | ---------------- |
+| src | string | yes | yes | texture name |
+| fallback | string | yes | yes | fallback texture |
+| region | vec4 | yes | yes | image sub-region |
## Canvas
diff --git a/doc/en/xml-ui-layouts.md b/doc/en/xml-ui-layouts.md
index b7126a088..97b36d1f6 100644
--- a/doc/en/xml-ui-layouts.md
+++ b/doc/en/xml-ui-layouts.md
@@ -120,6 +120,7 @@ Inner text is a button text.
- `src` - name of an image stored in textures folder. Extension is not specified. Type: string.
Example: *gui/error*
+- `fallback` - a fallback texture displayed when the main texture is missing / loading.
- `region` - image region x1, y1, x2, y2 from 0.0, 0.0 (upper left corner), 1.0, 1.0 (lower right corner)
## *canvas*
diff --git a/doc/ru/scripting/builtins/libassets.md b/doc/ru/scripting/builtins/libassets.md
index f80b710ad..161bb6cfb 100644
--- a/doc/ru/scripting/builtins/libassets.md
+++ b/doc/ru/scripting/builtins/libassets.md
@@ -5,6 +5,14 @@
## Функции
```lua
+-- Запрашивает фоновую загрузку текстуры
+assets.request_texture(
+ -- Файл изображения
+ filename: string,
+ -- Имя текстуры после загрузки
+ name: string,
+)
+
-- Загружает текстуру
assets.load_texture(
-- Массив байт файла изображения
@@ -33,4 +41,4 @@ assets.to_canvas(
-- так и находящиеся в атласе ("атлас:имя_текстуры").
name: string
) -> Canvas
-```
\ No newline at end of file
+```
diff --git a/doc/ru/scripting/ui.md b/doc/ru/scripting/ui.md
index 4371c931e..ad53ad824 100644
--- a/doc/ru/scripting/ui.md
+++ b/doc/ru/scripting/ui.md
@@ -170,6 +170,7 @@ document["worlds-panel"]:clear()
| Название | Тип | Чтение | Запись | Описание |
| -------- | ------ | ------ | ------ | ---------------------- |
| src | string | да | да | отображаемая текстура |
+| fallback | string | да | да | резервная текстура |
| region | vec4 | да | да | под-регион изображения |
## Холст (canvas)
diff --git a/doc/ru/xml-ui-layouts.md b/doc/ru/xml-ui-layouts.md
index 1362f6307..aeb669b3f 100644
--- a/doc/ru/xml-ui-layouts.md
+++ b/doc/ru/xml-ui-layouts.md
@@ -121,6 +121,7 @@
## Изображение - *image*
- `src` - имя изображения в папке textures без указания расширения. Тип: строка. Например `gui/error`
+- `fallback` - резервная текстура, отображаемая при отсутствии / фоновой загрузке основной
- `region` - под-регион изображения x1, y1, x2, y2 от 0.0, 0.0 (левый верхний угол), 1.0, 1.0 (правый нижний угол)
## Холст - *canvas*
diff --git a/res/content/base/modules/generation/ores.lua b/res/content/base/modules/generation/ores.lua
index 3b2c2f915..64b0c2a64 100644
--- a/res/content/base/modules/generation/ores.lua
+++ b/res/content/base/modules/generation/ores.lua
@@ -18,7 +18,7 @@ function ores.place(placements, x, z, w, d, seed, hmap, chunk_height)
for i=1,count do
local sx = math.random() * w
local sz = math.random() * d
- local sy = math.random() * (chunk_height * 0.5)
+ local sy = math.random() * (chunk_height * 0.5) + 6
if sy < hmap:at(sx, sz) * chunk_height - 6 then
table.insert(placements, {ore.struct, {sx, sy, sz}, math.random()*4, -1})
end
diff --git a/res/layouts/pages/content.xml.lua b/res/layouts/pages/content.xml.lua
index 89c230ed0..e77141cc4 100644
--- a/res/layouts/pages/content.xml.lua
+++ b/res/layouts/pages/content.xml.lua
@@ -28,7 +28,9 @@ local function include(id, is_include)
end
function apply()
- core.reconfig_packs(add_packs, rem_packs)
+ time.post_runnable(function ()
+ app.reconfig_packs(add_packs, rem_packs)
+ end)
if mode ~= "world" then
menu:back()
end
diff --git a/res/layouts/templates/pack.xml b/res/layouts/templates/pack.xml
index 3b24aa960..56bd50e50 100644
--- a/res/layouts/templates/pack.xml
+++ b/res/layouts/templates/pack.xml
@@ -11,5 +11,5 @@
-
+
diff --git a/res/layouts/templates/world.xml b/res/layouts/templates/world.xml
index 4ae936b6e..d20f78407 100644
--- a/res/layouts/templates/world.xml
+++ b/res/layouts/templates/world.xml
@@ -4,7 +4,7 @@
hover-color='#162B3399'
onclick='app.open_world("%{name}")'
>
-
+