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:
parent
67eb88808f
commit
dac63a3b2e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user