mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
chore: Add missing Fawe annotations to //regen
command
This commit is contained in:
parent
4d2a34fd21
commit
d17e3a6555
@ -696,8 +696,10 @@ public class RegionCommands {
|
|||||||
boolean success;
|
boolean success;
|
||||||
try {
|
try {
|
||||||
session.setMask(null);
|
session.setMask(null);
|
||||||
|
//FAWE start
|
||||||
session.setSourceMask(null);
|
session.setSourceMask(null);
|
||||||
actor.print(Caption.of("fawe.regen.time"));
|
actor.print(Caption.of("fawe.regen.time"));
|
||||||
|
//FAWE end
|
||||||
RegenOptions options = RegenOptions.builder()
|
RegenOptions options = RegenOptions.builder()
|
||||||
.seed(seed)
|
.seed(seed)
|
||||||
.regenBiomes(regenBiomes)
|
.regenBiomes(regenBiomes)
|
||||||
@ -706,7 +708,9 @@ public class RegionCommands {
|
|||||||
success = world.regenerate(region, editSession, options);
|
success = world.regenerate(region, editSession, options);
|
||||||
} finally {
|
} finally {
|
||||||
session.setMask(mask);
|
session.setMask(mask);
|
||||||
|
//FAWE start
|
||||||
session.setSourceMask(mask);
|
session.setSourceMask(mask);
|
||||||
|
//FAWE end
|
||||||
}
|
}
|
||||||
if (success) {
|
if (success) {
|
||||||
actor.print(Caption.of("worldedit.regen.regenerated"));
|
actor.print(Caption.of("worldedit.regen.regenerated"));
|
||||||
|
Loading…
Reference in New Issue
Block a user