mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-02 15:43:23 +01:00
Register worlds with Multiverse - reverts previous change
UseOwnGenerator is used by SkyGrid. This change makes sure MV registration occurs. https://github.com/BentoBoxWorld/SkyGrid/issues/22
This commit is contained in:
parent
0f5629b729
commit
fb86a25a5e
@ -63,7 +63,7 @@ public class IslandWorldManager {
|
|||||||
* @param world the World to register
|
* @param world the World to register
|
||||||
*/
|
*/
|
||||||
private void registerToMultiverse(@NonNull World world) {
|
private void registerToMultiverse(@NonNull World world) {
|
||||||
if (!isUseOwnGenerator(world) && plugin.getHooks() != null) {
|
if (plugin.getHooks() != null) {
|
||||||
plugin.getHooks().getHook("Multiverse-Core").ifPresent(hook -> {
|
plugin.getHooks().getHook("Multiverse-Core").ifPresent(hook -> {
|
||||||
if (Bukkit.isPrimaryThread()) {
|
if (Bukkit.isPrimaryThread()) {
|
||||||
((MultiverseCoreHook) hook).registerWorld(world);
|
((MultiverseCoreHook) hook).registerWorld(world);
|
||||||
|
Loading…
Reference in New Issue
Block a user