From 48325fd78dc24aa76007284b985094b771546c8e Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 24 Dec 2025 08:58:26 +0100 Subject: [PATCH] :apply() returns self --- cf-lib/data/Item.lua | 1 + cf-lib/data/Recipe.lua | 1 + cf-lib/data/Technology.lua | 1 + 3 files changed, 3 insertions(+) diff --git a/cf-lib/data/Item.lua b/cf-lib/data/Item.lua index 5934a72..5727408 100644 --- a/cf-lib/data/Item.lua +++ b/cf-lib/data/Item.lua @@ -32,6 +32,7 @@ end --- Applies the item to the game function Item:apply() data:extend({ self.prototype }) + return self end --- Assigns data to the item diff --git a/cf-lib/data/Recipe.lua b/cf-lib/data/Recipe.lua index 213aa14..87c48fd 100644 --- a/cf-lib/data/Recipe.lua +++ b/cf-lib/data/Recipe.lua @@ -32,6 +32,7 @@ end --- Applies the recipe to the game function Recipe:apply() data:extend({ self.prototype }) + return self end --- Assigns data to the recipe diff --git a/cf-lib/data/Technology.lua b/cf-lib/data/Technology.lua index 13a1dd9..3dd3b48 100644 --- a/cf-lib/data/Technology.lua +++ b/cf-lib/data/Technology.lua @@ -40,6 +40,7 @@ end --- Applies the technology to the game function Technology:apply() data:extend({ self.prototype }) + return self end --- Assigns data to the technology