2021-07-23 08:29:04 +02:00
--- a/net/minecraft/server/commands/CommandSchedule.java
+++ b/net/minecraft/server/commands/CommandSchedule.java
2023-12-05 17:40:00 +01:00
@@ -55,7 +55,7 @@
2021-07-23 08:29:04 +02:00
} else {
2021-11-21 23:00:00 +01:00
long j = commandlistenerwrapper.getLevel().getGameTime() + (long) i;
2021-07-23 08:29:04 +02:00
MinecraftKey minecraftkey = (MinecraftKey) pair.getFirst();
2021-11-21 23:00:00 +01:00
- CustomFunctionCallbackTimerQueue<MinecraftServer> customfunctioncallbacktimerqueue = commandlistenerwrapper.getServer().getWorldData().overworldData().getScheduledEvents();
+ CustomFunctionCallbackTimerQueue<MinecraftServer> customfunctioncallbacktimerqueue = commandlistenerwrapper.getLevel().serverLevelData.overworldData().getScheduledEvents(); // CraftBukkit - SPIGOT-6667: Use world specific function timer
2021-07-23 08:29:04 +02:00
2023-12-05 17:40:00 +01:00
((Either) pair.getSecond()).ifLeft((net_minecraft_commands_functions_commandfunction) -> {
2021-07-23 08:29:04 +02:00
String s = minecraftkey.toString();