Skip to content

Commit

Permalink
pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
gregchan550 committed Oct 9, 2023
1 parent f9f9790 commit d1be527
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file not shown.
Binary file modified source/core/assets/sounds/mobBoss/spawnDemonSlime.mp3
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ public void run() {

private void spawnDemonSlimes() {
for (int i = 0; i < SLIMES_SPAWNED; i++) {
demon.getEvents().trigger("spawn_demon_slime");
int finalI = i;
Timer.schedule(new Timer.Task() {
@Override
Expand All @@ -488,7 +489,6 @@ public void run() {
y = demon.getPosition().y;
}

demon.getEvents().trigger("spawn_demon_slime");
Vector2 spawnLocation = new Vector2(x, y);
slime.setPosition(spawnLocation);
ServiceLocator.getEntityService().register(slime);
Expand Down

0 comments on commit d1be527

Please sign in to comment.