Skip to content

Commit

Permalink
Update api.lua
Browse files Browse the repository at this point in the history
Did not test on this mod, but tested extensively on [plante_mars]'s /mars_lightup command.
pandorabox-io/planet_mars#3
  • Loading branch information
SwissalpS authored and BuckarooBanzay committed Feb 17, 2022
1 parent 1a4b5eb commit 3ac6f53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

function spill_removal.remove(pos, source_id, target_id, radius)

pos = vector.round(pos)

local range = {x=radius,y=radius,z=radius}

local pos1 = vector.subtract(pos, range)
Expand Down

0 comments on commit 3ac6f53

Please sign in to comment.