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:
tastybento 2019-07-28 21:43:59 -07:00
parent 0f5629b729
commit fb86a25a5e

View File

@ -63,7 +63,7 @@ public class IslandWorldManager {
* @param world the World to register
*/
private void registerToMultiverse(@NonNull World world) {
if (!isUseOwnGenerator(world) && plugin.getHooks() != null) {
if (plugin.getHooks() != null) {
plugin.getHooks().getHook("Multiverse-Core").ifPresent(hook -> {
if (Bukkit.isPrimaryThread()) {
((MultiverseCoreHook) hook).registerWorld(world);