Fixed item frame & armor stand logging under Folia
This commit is contained in:
parent
7170e29452
commit
ace870b930
13 changed files with 95 additions and 75 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue