Skip to content

Commit

Permalink
Cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
sub-kek committed Aug 27, 2024
1 parent 34d8e02 commit f7974a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ private class LavaPlayer {
private Collection<ServerPlayer> playersInRange;
private UUID playerUUID;
private AudioPlayer audioPlayer;
private final Thread lavaPlayerThread = new Thread(this::startTrackJob, "LavaPlayerThread");
private Block block;
private Block block; private final Thread lavaPlayerThread = new Thread(this::startTrackJob, "LavaPlayerThread");

private void startTrackJob() {
try {
Expand Down Expand Up @@ -276,5 +275,7 @@ public void loadFailed(FriendlyException e) {
}
}
}


}
}
5 changes: 3 additions & 2 deletions src/main/java/io/github/subkek/customdiscs/PlayerManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ private class DiscPlayer {
private Collection<ServerPlayer> playersInRange;
private UUID playerUUID;
private AudioPlayer audioPlayer;
private final Thread audioPlayerThread = new Thread(this::startTrackJob, "AudioPlayerThread");
private Block block;
private Block block; private final Thread audioPlayerThread = new Thread(this::startTrackJob, "AudioPlayerThread");

private void startTrackJob() {
try {
Expand Down Expand Up @@ -234,5 +233,7 @@ private void startTrackJob() {
}
}
}


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import io.github.subkek.customdiscs.LavaPlayerManager;
import io.github.subkek.customdiscs.PlayerManager;
import lombok.Data;
import org.bukkit.Particle;
import org.bukkit.block.Block;
import org.bukkit.block.Jukebox;

Expand Down

0 comments on commit f7974a1

Please sign in to comment.