Mod: .getInfo() -> :getInfo()

This commit is contained in:
Van
2026-11-13 17:43:26 +03:00
parent 1e91290b02
commit e540107876
55 changed files with 73 additions and 73 deletions

View File

@@ -32,7 +32,7 @@ local function registerRock(name, y, def, staff)
def = {}
end
local modPrefix = Mod.getInfo().shortName..':'
local modPrefix = Mod:getInfo().shortName..':'
local craftGroup = 'rocks_'..name..'_staff'
-- Default rock

View File

@@ -1,8 +1,8 @@
local modInfo = Mod.getInfo('smc__core__formspec')
local modInfo = Mod:getInfo('smc__core__formspec')
local require = modInfo.require
---@type PlayerInventoryUI
local PlayerInventoryUI = Mod.getInfo('smc__ui__player_inventory').require('PlayerInventoryUI')
local PlayerInventoryUI = Mod:getInfo('smc__ui__player_inventory').require('PlayerInventoryUI')
core.register_chatcommand('list', {
privs = {give = true},