mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
8398e12b34
By: md_5 <git@md-5.net>
11 lines
900 B
Diff
11 lines
900 B
Diff
--- a/net/minecraft/server/commands/CommandSchedule.java
|
|
+++ b/net/minecraft/server/commands/CommandSchedule.java
|
|
@@ -55,7 +55,7 @@
|
|
} else {
|
|
long j = commandlistenerwrapper.getLevel().getGameTime() + (long) i;
|
|
MinecraftKey minecraftkey = (MinecraftKey) pair.getFirst();
|
|
- CustomFunctionCallbackTimerQueue<MinecraftServer> customfunctioncallbacktimerqueue = commandlistenerwrapper.getServer().getWorldData().overworldData().getScheduledEvents();
|
|
+ CustomFunctionCallbackTimerQueue<MinecraftServer> customfunctioncallbacktimerqueue = commandlistenerwrapper.getLevel().serverLevelData.overworldData().getScheduledEvents(); // CraftBukkit - SPIGOT-6667: Use world specific function timer
|
|
|
|
((Either) pair.getSecond()).ifLeft((net_minecraft_commands_functions_commandfunction) -> {
|
|
String s = minecraftkey.toString();
|