From 89d7dd1c4c5c4fd9d26c3e0f8d0cef75c64cc298 Mon Sep 17 00:00:00 2001 From: Joshua Date: Tue, 9 Feb 2021 20:09:37 -0600 Subject: [PATCH] fix vanilla-drops set to false dropping the regen block as well? --- src/main/java/net/Indyuce/mmocore/listener/BlockListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/Indyuce/mmocore/listener/BlockListener.java b/src/main/java/net/Indyuce/mmocore/listener/BlockListener.java index a4be9103..2add1c40 100644 --- a/src/main/java/net/Indyuce/mmocore/listener/BlockListener.java +++ b/src/main/java/net/Indyuce/mmocore/listener/BlockListener.java @@ -136,9 +136,9 @@ public class BlockListener implements Listener { * Finally enable block regen. */ if (info.hasRegen()) { - Schedulers.async().runLater(()-> { + Schedulers.sync().run(()-> { MMOCore.plugin.mineManager.initialize(info.startRegeneration(Bukkit.createBlockData(savedData), block.getLocation()), !temporaryBlock); - }, 1); + }); } }