mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
Revert change to diggy-clear-void command
Originally proposed change to allow for a numerical surface_index to work with the diggy-clear-void debugging command. But found that command works as is by using the text 'redmew' as the surface index. Discarded proposed change and documented example use in comments to help clarify how to use.
This commit is contained in:
parent
e2b6f6096d
commit
2aa7b712ac
@ -147,6 +147,12 @@ local function on_mined_tile(surface, tiles)
|
||||
|
||||
Template.insert(surface, new_tiles, {})
|
||||
end
|
||||
|
||||
--[[--
|
||||
diggy-clear-void is a debugging command that can be used in game to clear void area. Arguments: left_top_x left_top_y width height surface_index
|
||||
Example: /diggy-clear-void -50 -50 100 100 redmew This will clear a square area 100 x 100 centered on the spawn point.
|
||||
Note: The command will not automatically generate new chunks.
|
||||
]]
|
||||
Command.add('diggy-clear-void', {
|
||||
description = {'command_description.diggy_clear_void'},
|
||||
arguments = {'left_top_x', 'left_top_y', 'width', 'height', 'surface_index'},
|
||||
@ -166,7 +172,7 @@ Command.add('diggy-clear-void', {
|
||||
end
|
||||
end
|
||||
|
||||
Template.insert(game.surfaces[tonumber(arguments.surface_index)], tiles, {})
|
||||
Template.insert(game.surfaces[arguments.surface_index], tiles, {})
|
||||
end)
|
||||
|
||||
--[[--
|
||||
|
Loading…
Reference in New Issue
Block a user