--- 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 customfunctioncallbacktimerqueue = source.getServer().getWorldData().overworldData().getScheduledEvents(); + TimerQueue customfunctioncallbacktimerqueue = source.getLevel().serverLevelData.overworldData().getScheduledEvents(); // CraftBukkit - SPIGOT-6667: Use world specific function timer Optional> optional = ((Either) function.getSecond()).left(); String s;