[ci] auto-format

This commit is contained in:
rikkolovescats 2023-01-14 14:35:39 +00:00 committed by github-actions[bot]
parent 83da21895d
commit 05ffa9fd0c

View file

@ -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)