forked from clone/WorldGuardWrapper
Fix getRegion for WG 6
This commit is contained in:
parent
2c42055095
commit
5ffb9e3530
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user