1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-06-19 07:21:26 +02:00

Getting it through Bukkit is bad.

This commit is contained in:
GJ 2013-02-26 10:02:25 -05:00
parent d8904827ec
commit 56bd782625

@ -1,6 +1,5 @@
package com.gmail.nossr50.skills.archery; package com.gmail.nossr50.skills.archery;
import org.bukkit.Bukkit;
import org.bukkit.entity.LivingEntity; import org.bukkit.entity.LivingEntity;
import org.bukkit.scheduler.BukkitScheduler; import org.bukkit.scheduler.BukkitScheduler;
@ -14,7 +13,7 @@ public class TrackedEntity implements Runnable {
protected TrackedEntity(LivingEntity livingEntity) { protected TrackedEntity(LivingEntity livingEntity) {
this.livingEntity = livingEntity; this.livingEntity = livingEntity;
this.scheduler = Bukkit.getScheduler(); this.scheduler = mcMMO.p.getServer().getScheduler();
this.taskId = scheduler.scheduleSyncRepeatingTask(mcMMO.p, this, 12000, 12000); this.taskId = scheduler.scheduleSyncRepeatingTask(mcMMO.p, this, 12000, 12000);
} }