fix vanilla-drops set to false dropping the regen block as well?

This commit is contained in:
Joshua 2021-02-09 20:09:37 -06:00
parent d2999a0e2c
commit 89d7dd1c4c

View File

@ -136,9 +136,9 @@ public class BlockListener implements Listener {
* Finally enable block regen. * Finally enable block regen.
*/ */
if (info.hasRegen()) { if (info.hasRegen()) {
Schedulers.async().runLater(()-> { Schedulers.sync().run(()-> {
MMOCore.plugin.mineManager.initialize(info.startRegeneration(Bukkit.createBlockData(savedData), block.getLocation()), !temporaryBlock); MMOCore.plugin.mineManager.initialize(info.startRegeneration(Bukkit.createBlockData(savedData), block.getLocation()), !temporaryBlock);
}, 1); });
} }
} }