Fix getRegion for WG 6

This commit is contained in:
Eric 2019-05-27 18:21:32 +02:00
parent 2c42055095
commit 5ffb9e3530

View File

@ -139,7 +139,9 @@ public class WorldGuardImplementation implements IWorldGuardImplementation {
@Override
public Optional<IWrappedRegion> getRegion(World world, String id) {
return getWorldManager(world).map(regionManager -> new WrappedRegion(world, regionManager.getRegion(id)));
return getWorldManager(world)
.map(regionManager -> regionManager.getRegion(id))
.map(region -> new WrappedRegion(world, region));
}
@Override