Mod: .getInfo() -> :getInfo()
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
local tableJoin = table.join
|
||||
|
||||
local modInfo = Mod.getInfo('smc__core__craft_system')
|
||||
local modInfo = Mod:getInfo('smc__core__craft_system')
|
||||
local require = modInfo.require
|
||||
|
||||
---@type CraftSystem.PrimitiveCraftHandler
|
||||
|
||||
@@ -3,7 +3,7 @@ local assert, pairs, ipairs = assert, pairs, ipairs
|
||||
local tableInsert, tableSort, tableJoin = table.insert, table.sort, table.join
|
||||
local stringMatch, stringLower = string.match, string_utf8.lower
|
||||
|
||||
local require = Mod.getInfo('smc__core__craft_system').require
|
||||
local require = Mod:getInfo('smc__core__craft_system').require
|
||||
|
||||
---@type CraftSystem.BaseCraftHandler.PlayerCraftsCache
|
||||
local PlayerCraftsCache = require('CraftSystem.BaseCraftHandler.PlayerCraftsCache')
|
||||
|
||||
@@ -2,7 +2,7 @@ local v = vector.new
|
||||
local assert, ipairs, tostring = assert, ipairs, tostring
|
||||
local coreChatSendPlayer, coreItemDrop = core.chat_send_player, core.item_drop
|
||||
|
||||
local require = Mod.getInfo('smc__core__craft_system').require
|
||||
local require = Mod:getInfo('smc__core__craft_system').require
|
||||
|
||||
local ImmersiveCraftEvents = Smc.requireEvents('ImmersiveCraftEvents') --[[@as Events.ImmersiveCraftEvents]]
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ local assert = assert
|
||||
|
||||
local tableInsert, tableMerge = table.insert, table.merge
|
||||
|
||||
local modInfo = Mod.getInfo('smc__core__craft_system')
|
||||
local modInfo = Mod:getInfo('smc__core__craft_system')
|
||||
local require = modInfo.require
|
||||
|
||||
---@type CraftSystem.BaseCraftHandler
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---@type Creature
|
||||
local Creature = Mod.getInfo('smc__core__creature').require('Creature')
|
||||
local Creature = Mod:getInfo('smc__core__creature').require('Creature')
|
||||
|
||||
---The entity the player interacts with during immersive crafting.
|
||||
---@class CraftSystem.ImmersiveCraftNode : Creature
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
local require = Mod.getInfo('smc__core__craft_system').require
|
||||
local require = Mod:getInfo('smc__core__craft_system').require
|
||||
|
||||
local ImmersiveCraftEvents = Smc.requireEvents('ImmersiveCraftEvents') --[[@as Events.ImmersiveCraftEvents]]
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ local assert = assert
|
||||
local extend = Class.extend
|
||||
local coreItemDrop = core.item_drop
|
||||
|
||||
local require = Mod.getInfo('smc__core__craft_system').require
|
||||
local require = Mod:getInfo('smc__core__craft_system').require
|
||||
|
||||
local ImmersiveCraftEvents = Smc.requireEvents('ImmersiveCraftEvents') --[[@as Events.ImmersiveCraftEvents]]
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local getInstance, extend = Class.getInstance, Class.extend
|
||||
|
||||
local modInfo = Mod.getInfo('smc__core__craft_system')
|
||||
local modInfo = Mod:getInfo('smc__core__craft_system')
|
||||
local require = modInfo.require
|
||||
|
||||
---@type CraftSystem.BaseCraft
|
||||
|
||||
@@ -2,7 +2,7 @@ local extend = Class.extend
|
||||
|
||||
local tableInsert, tableSort, tableJoin = table.insert, table.sort, table.join
|
||||
|
||||
local modInfo = Mod.getInfo('smc__core__craft_system')
|
||||
local modInfo = Mod:getInfo('smc__core__craft_system')
|
||||
local require = modInfo.require
|
||||
|
||||
---@type CraftSystem.BaseCraftHandler
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local getInstance, extend = Class.getInstance, Class.extend
|
||||
|
||||
local modInfo = Mod.getInfo('smc__core__craft_system')
|
||||
local modInfo = Mod:getInfo('smc__core__craft_system')
|
||||
local require = modInfo.require
|
||||
|
||||
---@type CraftSystem.BaseCraft
|
||||
|
||||
@@ -2,7 +2,7 @@ local HASH_SEPARATOR = ','
|
||||
|
||||
local tableInsert, tableCopy, tableSort, tableConcat, tableIsEmpty = table.insert, table.copy, table.sort, table.concat, table.is_empty
|
||||
|
||||
local modInfo = Mod.getInfo('smc__core__craft_system')
|
||||
local modInfo = Mod:getInfo('smc__core__craft_system')
|
||||
local require = modInfo.require
|
||||
|
||||
---@type CraftSystem.BaseCraftHandler
|
||||
|
||||
Reference in New Issue
Block a user