Skip to content

Commit f61a059

Browse files
committed
Fiy typo and apply fawe syntax
1 parent 5f23f53 commit f61a059

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

fastasyncworldedit/API/fill-region-by-pattern.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ public void setBiomeArea(World world, BlockVector3 position1, BlockVector3 posit
3030
// This code would be called by the plugin in the main thread
3131
public void call() {
3232
// Here we set our position 1 and 2
33-
BlockVector3 position1 = BlockVector3.at(300,-64,300);
34-
BlockVector3 position2 = BlockVector3.at(600,128,600);
35-
World bukkitWorld = Bukkit.geWorld("world");
33+
BlockVector3 position1 = BlockVector3.at(300, -64, 300);
34+
BlockVector3 position2 = BlockVector3.at(600, 128, 600);
35+
World bukkitWorld = Bukkit.getWorld("world");
3636
setBiomeArea(bukkitWorld, position1, position2);
3737
}
3838
```
@@ -45,9 +45,9 @@ Now we run the code Async to let Fawe manage server resources:
4545
// Now we wrap our code in a runnable with a functional interface and have it executed by Bukkit's scheduler system
4646
Runnable executeCode = () -> {
4747
// Here we set our position 1 and 2
48-
BlockVector3 position1 = BlockVector3.at(300,-64,300);
49-
BlockVector3 position2 = BlockVector3.at(600,128,600);
50-
World bukkitWorld = Bukkit.geWorld("world");
48+
BlockVector3 position1 = BlockVector3.at(300, -64, 300);
49+
BlockVector3 position2 = BlockVector3.at(600, 128, 600);
50+
World bukkitWorld = Bukkit.getWorld("world");
5151
setBiomeArea(bukkitWorld, position1, position2);
5252
};
5353
Bukkit.getScheduler().runTaskAsynchronously(Bukkit.getPluginManager().getPlugin("YourPluginNameHere"), executeCode);

0 commit comments

Comments
 (0)