From ec8326f3edace73d72b86d3c79959317df4212a7 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Fri, 7 Aug 2026 22:50:54 +0300 Subject: [PATCH 1/2] update doc/*/content-packs.md --- doc/en/content-packs.md | 3 ++- doc/ru/content-packs.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/en/content-packs.md b/doc/en/content-packs.md index c193fb188..48ec57e6d 100644 --- a/doc/en/content-packs.md +++ b/doc/en/content-packs.md @@ -12,7 +12,7 @@ Content-pack folder must contain file **package.json** with following contents: { "id": "pack_id", "title": "pack name will be displayed in the content menu", - "version": "content-pack version - major.minor", + "version": "content-pack version - major.minor.[patch])", "creator": "content-pack creator", "description": "short description", "dependencies": [ @@ -26,6 +26,7 @@ Dependency levels are indicated by prefixes in the name: - '!' - required dependency - '?' - optional dependency - '~' - weak dependency + If prefix is not specified, '!' level will be used. Example: '~randutil' - weak dependency 'randutil'. diff --git a/doc/ru/content-packs.md b/doc/ru/content-packs.md index 32f9be593..4ab002104 100644 --- a/doc/ru/content-packs.md +++ b/doc/ru/content-packs.md @@ -12,7 +12,7 @@ { "id": "выбранное_имя_пака", "title": "имя контент-пака для отображения в меню контента", - "version": "версия контент-пака в формате major.minor", + "version": "версия контент-пака в формате major.minor.[patch]", "creator": "создатель контент-пака", "description": "краткое описание", "dependencies": [ @@ -28,6 +28,7 @@ - '!' - обязательная зависимость - '?' - опциональная зависимость - '~' - слабая зависимость + Отсутствие префикса интерпретируется как '!'. Пример: '~randutil' - слабая зависимость 'randutil'. From 64a5a74f53722aa0db17b47bd0aa9fce106a661c Mon Sep 17 00:00:00 2001 From: MihailRis Date: Fri, 7 Aug 2026 23:04:12 +0300 Subject: [PATCH 2/2] fix: stdcomp calling non-component global functions --- res/modules/internal/stdcomp.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/res/modules/internal/stdcomp.lua b/res/modules/internal/stdcomp.lua index 4278f14f6..dbf7f9776 100644 --- a/res/modules/internal/stdcomp.lua +++ b/res/modules/internal/stdcomp.lua @@ -129,7 +129,7 @@ return { goto continue end for _, component in pairs(entity.components) do - local callback = component.on_update + local callback = rawget(component, "on_update") if not component.__disabled and callback then local result, err = pcall(callback, tps) if err then @@ -143,7 +143,7 @@ return { physics_update = function(delta) for uid, entity in pairs(entities) do for _, component in pairs(entity.components) do - local callback = component.on_physics_update + local callback = rawget(component, "on_physics_update") if not component.__disabled and callback then local result, err = pcall(callback, delta) if err then @@ -156,7 +156,7 @@ return { render = function(delta) for _,entity in pairs(entities) do for _, component in pairs(entity.components) do - local callback = component.on_render + local callback = rawget(component, "on_render") if not component.__disabled and callback then local result, err = pcall(callback, delta) if err then