Skip to content

Commit 85ea2fe

Browse files
Copilotmodpotato
andcommitted
Fix Folia region scheduler API usage - use Bukkit.getRegionScheduler() instead of world.getRegionScheduler()
Co-authored-by: modpotato <81768237+modpotato@users.noreply.github.com>
1 parent 462ace9 commit 85ea2fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/top/modpotato/util/DebrisStorage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public int restoreAllDebris() {
270270
}
271271

272272
// Schedule block change on the region scheduler
273-
world.getRegionScheduler().execute(plugin, location, () -> {
273+
Bukkit.getRegionScheduler().execute(plugin, location, () -> {
274274
try {
275275
Block block = location.getBlock();
276276

@@ -387,7 +387,7 @@ public int restoreDebrisInWorld(World world) {
387387
}
388388

389389
// Schedule block change on the region scheduler
390-
world.getRegionScheduler().execute(plugin, location, () -> {
390+
Bukkit.getRegionScheduler().execute(plugin, location, () -> {
391391
try {
392392
Block block = location.getBlock();
393393

0 commit comments

Comments
 (0)