mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
[ci] auto-format
This commit is contained in:
parent
83da21895d
commit
05ffa9fd0c
1 changed files with 31 additions and 28 deletions
|
|
@ -111,6 +111,7 @@ class TNTRespawnText(ba.Plugin):
|
|||
# Timers don't like calling functions that are outside of the game's "universe".
|
||||
# If we call the function directly, we get a PyCallable error.
|
||||
# We make a dummy function to avoid this.
|
||||
|
||||
def tnt_callback():
|
||||
TNTRespawnText.on_tnt_exploded(args[0])
|
||||
|
||||
|
|
@ -202,7 +203,9 @@ class TNTRespawnText(ba.Plugin):
|
|||
# If the TNT box is fresly spawned spawned earlier in the function, chances are it doesn't have a callback.
|
||||
# If it has, ignore. Otherwise let's add it.
|
||||
# Cloning code that already exists in init is not very clean, but that'll do.
|
||||
if args[0].tnt_has_callback: return
|
||||
if args[0].tnt_has_callback:
|
||||
return
|
||||
|
||||
def tnt_callback():
|
||||
TNTRespawnText.on_tnt_exploded(args[0])
|
||||
args[0]._tnt.node.add_death_action(tnt_callback)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue