mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
30e4583dbe
By: Initial Source <noreply+automated@papermc.io>
11 lines
832 B
Diff
11 lines
832 B
Diff
--- a/net/minecraft/server/commands/ScheduleCommand.java
|
|
+++ b/net/minecraft/server/commands/ScheduleCommand.java
|
|
@@ -58,7 +58,7 @@
|
|
} else {
|
|
long j = source.getLevel().getGameTime() + (long) time;
|
|
ResourceLocation minecraftkey = (ResourceLocation) function.getFirst();
|
|
- TimerQueue<MinecraftServer> customfunctioncallbacktimerqueue = source.getServer().getWorldData().overworldData().getScheduledEvents();
|
|
+ TimerQueue<MinecraftServer> customfunctioncallbacktimerqueue = source.getLevel().serverLevelData.overworldData().getScheduledEvents(); // CraftBukkit - SPIGOT-6667: Use world specific function timer
|
|
Optional<net.minecraft.commands.functions.CommandFunction<CommandSourceStack>> optional = ((Either) function.getSecond()).left();
|
|
String s;
|
|
|