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

@@ -1,4 +1,4 @@
local modInfo = Mod.getInfo('smc__core__player')
local modInfo = Mod:getInfo('smc__core__player')
local require = modInfo.require
return require('Player')

View File

@@ -2,7 +2,7 @@
local Player = {}
---@type PlayerInventoryUI
local PlayerInventoryUI = Mod.getInfo('smc__ui__player_inventory').require('PlayerInventoryUI')
local PlayerInventoryUI = Mod:getInfo('smc__ui__player_inventory').require('PlayerInventoryUI')
core.register_on_joinplayer(function(player)
player:set_inventory_formspec(PlayerInventoryUI:getFormSpecString(player:get_player_name()))
@@ -29,7 +29,7 @@ core.register_chatcommand('show_inv',
}
)
local require = Mod.getInfo('smc__core__player').require
local require = Mod:getInfo('smc__core__player').require
require('Player.inventory')

View File

@@ -1,2 +1,2 @@
---@type PlayerInventoryUI
local PlayerInventoryUI = Mod.getInfo('smc__ui__player_inventory').require('PlayerInventoryUI')
local PlayerInventoryUI = Mod:getInfo('smc__ui__player_inventory').require('PlayerInventoryUI')