EmmyLua -> LuaLS
This commit is contained in:
@@ -76,7 +76,7 @@ function ProcessingContainerStation:new(def, nodesDef)
|
||||
callbacks.on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
oldCallback(pos, node, clicker, itemstack, pointed_thing)
|
||||
|
||||
instance:showForm(pos, clicker)
|
||||
instance:showForm(pos, clicker --[[@as Player]])
|
||||
end
|
||||
|
||||
oldCallback = callbacks.on_metadata_inventory_move or function(...) end
|
||||
@@ -249,8 +249,7 @@ function ProcessingContainerStation:pushFuelStation( meta, pos)
|
||||
return
|
||||
end
|
||||
|
||||
---@type ProcessingFuelStation?
|
||||
local fuelStation = Smc.getNodeSuperclassByPos(fuelPos)
|
||||
local fuelStation = Smc.getNodeSuperclassByPos(fuelPos) --[[@as ProcessingFuelStation?]]
|
||||
assert(fuelStation ~= nil)
|
||||
|
||||
if fuelStation.fuelGroup ~= self.fuelGroup then
|
||||
@@ -307,10 +306,8 @@ local tab = function(self, playerName, tabType)
|
||||
local pos = self:getContex(playerName, 'node_tab_pos')
|
||||
local inventoryLocation = ('nodemeta:%s,%s,%s'):format(pos.x, pos.y, pos.z)
|
||||
|
||||
---@type ProcessingContainerStation.MetaData
|
||||
local meta = core.get_meta(pos)
|
||||
---@type ProcessingFuelStation.MetaData
|
||||
local fuelMeta = core.get_meta(pos - vector.new(0, 1, 0))
|
||||
local meta = core.get_meta(pos) --[[@as ProcessingContainerStation.MetaData]]
|
||||
local fuelMeta = core.get_meta(pos - vector.new(0, 1, 0)) --[[@as ProcessingFuelStation.MetaData]]
|
||||
|
||||
form
|
||||
:image(0, 0, 11, 9, 'player_inventory_tab_background.png')
|
||||
|
||||
Reference in New Issue
Block a user