Mod: .getInfo() -> :getInfo()
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user