Fixed item frame & armor stand logging under Folia

This commit is contained in:
Intelli 2023-03-24 18:10:11 -06:00
parent 7170e29452
commit ace870b930
13 changed files with 95 additions and 75 deletions

View file

@ -29,10 +29,10 @@ public class Scheduler {
else if (regionData instanceof Entity) { // ENTITY
Entity entity = (Entity) regionData;
if (delay == 0) {
entity.getScheduler().run(plugin, value -> task.run(), null);
entity.getScheduler().run(plugin, value -> task.run(), task);
}
else {
entity.getScheduler().runDelayed(plugin, value -> task.run(), null, delay);
entity.getScheduler().runDelayed(plugin, value -> task.run(), task, delay);
}
}
else { // GLOBAL