Assert the remaining optional reads in exp_util and commands

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
bbassie
2026-08-07 15:31:43 +00:00
co-authored by Claude Opus 5
parent b5bbf73332
commit 300196bc76
3 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ Commands.new("kill", { "exp-commands_kill.description" })
if script.active_mods["space-age"] then
other_player.surface.create_entity{ name = "lightning", position = { other_player.position.x, other_player.position.y - 16 }, target = other_player.character }
end
other_player.character.die()
assert(other_player.character).die()
else
return Commands.status.unauthorised{ "exp-commands_kill.lower-role" }
end