Skip to content

Commit

Permalink
DP | BugFixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik0-0 committed Feb 28, 2024
1 parent de0d3ef commit 153f35e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
execute if score spawn nn_spawn matches 29 run scoreboard players set spawn nn_spawn 0
scoreboard players add ticks nn_spawn 1
$execute unless entity @e[tag=$(bot_name)] run scoreboard players set spawn nn_nextbot_spawn $(id)
execute if score ticks nn_spawn matches 10 run function nnb_spawnsystem:tp_bots with storage nnb_spawnsystem:temp
execute if score ticks nn_spawn matches 11.. run function nnb_spawnsystem:tp_bots with storage nnb_spawnsystem:temp
4 changes: 2 additions & 2 deletions nnb_spawnsystem/main.jmc
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ setup_bots() with storage nnb_spawnsystem:temp;
// Universal spawn bot stuff
function setup_bots() {
// Prevent spawning w.i.p.
if (nn_spawn:spawn = 29 ) {
if (nn_spawn:spawn = 29) {
scoreboard players set spawn nn_spawn 0;
}

Expand All @@ -239,7 +239,7 @@ function setup_bots() {
$execute unless entity @e[tag=$(bot_name)] run scoreboard players set spawn nn_nextbot_spawn $(id);

// Delay the teleportation stuff
if (nn_spawn:ticks = 10) {
if (nn_spawn:ticks > 10) {
tp_bots() with storage nnb_spawnsystem:temp;
}}

Expand Down

0 comments on commit 153f35e

Please sign in to comment.