1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-04 00:15:45 +02:00

Fix render beam

This commit is contained in:
Gerkiz 2022-10-25 20:52:44 +02:00
parent 67eb88808f
commit dac63a3b2e

View File

@ -45,10 +45,11 @@ local remove = table.remove
local speed = 0.06
--- Draws a new render.
---@return integer
---@return table
function Public:new_render()
local surface = game.get_surface(self.surface_id)
self.render_id = rendering.draw_sprite {target = self.position, sprite = self.sprite, surface = surface}
return self
end
--- Sets a new target for a given render.