Skip to content

Commit 5947a99

Browse files
author
ilm9001
committed
fixes
1 parent 41b6589 commit 5947a99

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/main/java/com/ilm9001/nightclub/beatmap/BeatmapPlayer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ public InfoData play(List<Player> playTo) {
7373
public void stop() {
7474
List<LightChannel> channelList = Arrays.asList(LightChannel.values());
7575
if (executorService != null) {
76-
executorService.schedule(() -> channelList.forEach(channel -> {
76+
channelList.forEach(channel -> {
7777
channel.getHandler().off(new Color(0x000000));
7878
channel.getHandler().stop();
7979
isPlaying = false;
80-
}), 0, TimeUnit.MILLISECONDS);
80+
});
8181
executorService.shutdownNow();
8282
}
8383
playTo.forEach(player -> player.stopSound(name));

src/main/java/com/ilm9001/nightclub/commands/LightCommand.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ public static void onBuild(Player player, String[] args) {
3737
if (manager.getLoadedUniverse() == null) {
3838
return;
3939
}
40-
if (light != null) {
41-
light.off(new Color(0x000000));
42-
light.stop();
43-
}
4440
light = new Light(UUID.randomUUID(), "Unnamed-Light" + new Random().nextInt(), Location.getFromBukkitLocation(player.getLocation().add(0, 1, 0)),
4541
15, 80, 0.3, 5, 45, 3, player.getLocation().getPitch() > -10, LightPattern.CIRCLE,
4642
LightType.GUARDIAN_BEAM, LightChannel.CENTER_LIGHTS, LightSpeedChannel.DEFAULT);

0 commit comments

Comments
 (0)