Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ilm9001 committed Nov 16, 2021
1 parent 41b6589 commit 5947a99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ public InfoData play(List<Player> playTo) {
public void stop() {
List<LightChannel> channelList = Arrays.asList(LightChannel.values());
if (executorService != null) {
executorService.schedule(() -> channelList.forEach(channel -> {
channelList.forEach(channel -> {
channel.getHandler().off(new Color(0x000000));
channel.getHandler().stop();
isPlaying = false;
}), 0, TimeUnit.MILLISECONDS);
});
executorService.shutdownNow();
}
playTo.forEach(player -> player.stopSound(name));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ public static void onBuild(Player player, String[] args) {
if (manager.getLoadedUniverse() == null) {
return;
}
if (light != null) {
light.off(new Color(0x000000));
light.stop();
}
light = new Light(UUID.randomUUID(), "Unnamed-Light" + new Random().nextInt(), Location.getFromBukkitLocation(player.getLocation().add(0, 1, 0)),
15, 80, 0.3, 5, 45, 3, player.getLocation().getPitch() > -10, LightPattern.CIRCLE,
LightType.GUARDIAN_BEAM, LightChannel.CENTER_LIGHTS, LightSpeedChannel.DEFAULT);
Expand Down

0 comments on commit 5947a99

Please sign in to comment.