diff --git a/core/src/main/java/com/boydti/fawe/util/EditSessionBuilder.java b/core/src/main/java/com/boydti/fawe/util/EditSessionBuilder.java index 39418c8b..8aa46462 100644 --- a/core/src/main/java/com/boydti/fawe/util/EditSessionBuilder.java +++ b/core/src/main/java/com/boydti/fawe/util/EditSessionBuilder.java @@ -148,7 +148,7 @@ public class EditSessionBuilder { } public EditSessionBuilder allowedRegionsEverywhere() { - return allowedRegions(new RegionWrapper[]{RegionWrapper.GLOBAL()}); + return allowedRegions(new Region[]{RegionWrapper.GLOBAL()}); } public EditSessionBuilder autoQueue(@Nullable Boolean autoQueue) { diff --git a/core/src/main/java/com/boydti/fawe/util/WEManager.java b/core/src/main/java/com/boydti/fawe/util/WEManager.java index 07a14490..c18ca413 100644 --- a/core/src/main/java/com/boydti/fawe/util/WEManager.java +++ b/core/src/main/java/com/boydti/fawe/util/WEManager.java @@ -122,7 +122,7 @@ public class WEManager { masks.clear(); regions.clear(); } else { - return regions.toArray(new RegionWrapper[regions.size()]); + return regions.toArray(new Region[regions.size()]); } } for (final FaweMaskManager manager : managers) { @@ -143,7 +143,7 @@ public class WEManager { } else { player.deleteMeta("lastMask"); } - return regions.toArray(new RegionWrapper[regions.size()]); + return regions.toArray(new Region[regions.size()]); }