bbassie and Claude Opus 5
619ed4b39f
Remove asserts the types already cover
...
The nil check burn down added guards which turned out redundant once
the surrounding annotations landed. `_has_handlers` is set to true when
the first handler registers, so it is a boolean rather than the literal
false it was inferred as.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-07 15:31:48 +00:00
bbassie and Claude Opus 5
f5656025ee
Clear the last of the nil checks
...
Guards now cover the statements that follow them, and a couple of reads
are restructured so the narrowing survives.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-07 15:31:43 +00:00
bbassie and Claude Opus 5
76ecc37d3f
Type the legacy role registry
...
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-07 15:31:43 +00:00
bbassie and Claude Opus 5
300196bc76
Assert the remaining optional reads in exp_util and commands
...
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-07 15:31:43 +00:00
bbassie and Claude Opus 5
ce3b490554
Assert the debug frames exist
...
`debug.getinfo` is optional, but these helpers always ask for a frame
which is on the stack.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-07 15:31:43 +00:00
bbassie and Claude Opus 5
d78ae40c5d
Correct partial table types
...
`_display_data` is a cache keyed by force name, not a single record.
The auto complete accumulator starts empty, so its fields are optional.
Game commands have no usage beyond their own help text.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-07 15:31:18 +00:00
Cooldude2606 and GitHub
aedc3cff6b
Fix lint errors on new luals version ( #384 )
2025-04-06 17:05:40 +01:00
Cooldude2606
e34a320d97
Convert toolbar minus datastore
2025-01-30 00:08:44 +00:00
Cooldude2606
1a17f11062
Multiple fixes for role commands
...
- Fix server being 'Guest' for commands
- Make autocomplete of arguments more intuitive
- Fix usage text for commands
2025-01-25 18:26:59 +00:00
516bdcabc4
Fix ExpUtil.extract_time_units ( #362 )
...
* Update module_exports.lua
* Add type annotation to prevent regression
---------
Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com >
2025-01-21 21:05:52 +00:00
Cooldude2606
b666758a54
Fix time format with nil plural
2025-01-19 23:47:22 +00:00
Cooldude2606
1d1a03cf6a
Fix issues with format
...
- Remove tailing 'join'
- Remove 'and' with single unit
- Pad time values to 2 digits
2025-01-19 00:30:27 +00:00
Cooldude2606
b29a141d5d
Fix sudo command
...
- Fixes autocomplete using patterns by default
- Fixes required argument for sudo
- Fixes format player name for table type
2025-01-15 21:02:44 +00:00
Cooldude2606
0e6bce6975
Fix get_storage_for_stack errors with invalid stacks
...
Fixes `entity` is nil inside of `ExpUtil.get_storage_for_stack` #352
2025-01-13 21:00:01 +00:00
Cooldude2606
3e6ec6a867
Fix issues with util and commands
...
- Use rawget when testing for locale strings
- Use player index 0 for errors in rcon commands
2025-01-11 00:42:41 +00:00
60e34a0767
Add Assert For Issue 352 ( #349 )
...
* Update module_exports.lua
* Update module_exports.lua
* Link to issue rather than PR
---------
Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com >
2025-01-08 21:30:13 +00:00
Cooldude2606
4a087a3324
Fix cache for get_storage_for_stack
2025-01-03 19:12:17 +00:00
Cooldude2606
2e2e7c8518
Fix types on item transfer
2024-12-31 18:57:54 +00:00
Cooldude2606
99ab54da0a
Enable stricter type checks
2024-11-21 00:03:19 +00:00
Cooldude2606
b26ce578f2
Disable name style check due to open issue
...
https://github.com/LuaLS/lua-language-server/issues/2643
2024-11-19 23:48:13 +00:00
Cooldude2606
9aee1c425f
Fix start, join, formatting, and locale issues
2024-11-19 22:37:49 +00:00
Cooldude2606
c61c931b58
Further improvements for ExpUtil
2024-11-19 22:36:04 +00:00
Cooldude2606
446e87b610
Add Clusterio Plugins
2024-11-19 21:51:13 +00:00