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