Skip to content

Commit

Permalink
DP | Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik0-0 committed Mar 25, 2024
1 parent 7780e47 commit 5dee189
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
execute if score spawn nn_spawn matches 29 run scoreboard players set spawn nn_spawn 0
function nnb_spawnsystem:clear_bugged
$execute unless entity @e[tag=$(bot_name)] run scoreboard players set spawn nn_nextbot_spawn $(id)
execute if score ticks nn_spawn matches ..2 run function nnb_spawnsystem:__private__/if_else/5
execute if score ticks nn_spawn matches ..2 run function nnb_spawnsystem:tp_bots with storage nnb_spawnsystem:temp
6 changes: 3 additions & 3 deletions nnb_spawnsystem/main.jmc
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,15 @@ function setup_bots() {
if (nn_spawn:spawn = 29) {
scoreboard players set spawn nn_spawn 0;
}

// Clear bugged bots
clear_bugged();
// Spawn stuff
$execute unless entity @e[tag=$(bot_name)] run scoreboard players set spawn nn_nextbot_spawn $(id);

// Delay the teleportation stuff
if (nn_spawn:ticks < 3) {
tp_bots() with storage nnb_spawnsystem:temp;
// Clear bugged bots
clear_bugged();

}}

// TP Stuff
Expand Down

0 comments on commit 5dee189

Please sign in to comment.