1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-12-17 23:49:02 +02:00

minor fix

This commit is contained in:
Gerkiz
2019-11-10 22:12:25 +01:00
parent e3f04cbd64
commit 435b4e5a28
2 changed files with 5 additions and 4 deletions

View File

@@ -112,8 +112,8 @@ commands.add_command(
p = log
end
end
if param > 50 then player.print("[ERROR] Value is too big.", Color.fail) return end
if param == nil then player.print("[ERROR] Must specify radius!", Color.fail) return end
if param > 50 then player.print("[ERROR] Value is too big.", Color.fail) return end
if not _a.generate_map then
_a.generate_map = true
@@ -292,8 +292,9 @@ commands.add_command(
p = log
end
end
if param > 500 then player.print("[ERROR] Value is too big.", Color.warning) return end
if param == nil then player.print("[ERROR] Must specify radius!", Color.warning) return end
if param == nil then player.print("[ERROR] Must specify radius!", Color.fail) return end
if param > 500 then player.print("[ERROR] Value is too big.", Color.fail) return end
local radius = {{x = -param, y = -param}, {x = param, y = param}} or {{x = -1, y = -1}, {x = 1, y = 1}}
for _, entity in pairs(player.surface.find_entities_filtered{area = radius, type = "corpse"}) do
player.print("Cleared biter-corpses.", Color.success)