EmmyLua -> LuaLS

This commit is contained in:
Van
2026-06-16 17:50:29 +03:00
parent 60003eea73
commit 1799d6d32e
37 changed files with 135 additions and 314 deletions

View File

@@ -96,7 +96,7 @@ function ProcessingFuelStation: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
@@ -312,8 +312,7 @@ function ProcessingFuelStation:pushContainerStation(meta, pos)
return
end
---@type ProcessingContainerStation?
local containerStation = Smc.getNodeSuperclassByPos(containerPos)
local containerStation = Smc.getNodeSuperclassByPos(containerPos) --[[@as ProcessingContainerStation?]]
assert(containerStation ~= nil)
if containerStation.fuelGroup ~= self.fuelGroup then
@@ -326,7 +325,6 @@ end
---@param pos MapVector
---@param elapsed number
---@param node NodeTable
---@param elapsed number
---@return boolean?
function ProcessingFuelStation:onTimer(pos, elapsed, node, timeout)
local meta = self:getMeta(pos)
@@ -369,8 +367,7 @@ 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 ProcessingFuelStation.MetaData
local meta = core.get_meta(pos)
local meta = core.get_meta(pos) --[[@as ProcessingFuelStation.MetaData]]
form
:image(0, 0, 11, 9, 'player_inventory_tab_background.png')
@@ -404,8 +401,7 @@ core.register_abm({
nodenames = {'processing_fuel_station:test_processing_node'},
---@param pos MapVector
action = function(pos, node, active_object_count, active_object_count_wider)
---@type ProcessingFuelStation.MetaData
local meta = core.get_meta(pos)
local meta = core.get_meta(pos) --[[@as ProcessingFuelStation.MetaData]]
if meta:get_float("remaining_fuel") > 0 then
core.add_particlespawner({
amount = 10,