forked from cataclysmbnteam/Cataclysm-BN
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: format Lua files (cataclysmbnteam#3819)
* build: add dprint-stylua plugin we choose to use dprint because: - its plugin system is useful when unifying formatters - deno uses dprint internally, thus less migration debt - lua IDE formatter is hard to set up * docs: lua style guide * style: format lua files --------- Co-authored-by: nocontribute <>
- Loading branch information
Showing
26 changed files
with
1,302 additions
and
1,214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
gdebug.log_info("SLT: preload") | ||
|
||
local mod = game.mod_runtime[ game.current_mod ] | ||
local mod = game.mod_runtime[game.current_mod] | ||
|
||
game.hooks.on_game_load[ #game.hooks.on_game_load + 1 ] = function( ... ) | ||
return mod.on_game_load_hook( ... ) | ||
game.hooks.on_game_load[#game.hooks.on_game_load + 1] = function(...) | ||
return mod.on_game_load_hook(...) | ||
end | ||
|
||
game.hooks.on_game_save[ #game.hooks.on_game_save + 1 ] = function( ... ) | ||
return mod.on_game_save_hook( ... ) | ||
game.hooks.on_game_save[#game.hooks.on_game_save + 1] = function(...) | ||
return mod.on_game_save_hook(...) | ||
end |
Oops, something went wrong.