Skip to content

Commit

Permalink
Fix time/weather commands
Browse files Browse the repository at this point in the history
  • Loading branch information
JRoy committed Aug 22, 2023
1 parent d0493cc commit d73ed13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void run(final Server server, final CommandSource sender, final String co
final boolean timeAdd = add;
for (final World world : worlds) {
joiner.add(world.getName());
ess.scheduleLocationDelayedTask(world.getSpawnLocation(), () -> {
ess.scheduleGlobalDelayedTask(() -> {
long time = world.getTime();
if (!timeAdd) {
time -= time % 24000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void run(final Server server, final User user, final String commandLabel,
isStorm = args[0].equalsIgnoreCase("storm");
}

ess.scheduleEntityDelayedTask(user.getBase(), () -> {
ess.scheduleGlobalDelayedTask(() -> {
final World world = user.getWorld();

if (args.length > 1) {
Expand Down

0 comments on commit d73ed13

Please sign in to comment.