Skip to content

Commit

Permalink
Fiy typo and apply fawe syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMeinerLP committed Apr 7, 2024
1 parent 5f23f53 commit f61a059
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fastasyncworldedit/API/fill-region-by-pattern.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ public void setBiomeArea(World world, BlockVector3 position1, BlockVector3 posit
// This code would be called by the plugin in the main thread
public void call() {
// Here we set our position 1 and 2
BlockVector3 position1 = BlockVector3.at(300,-64,300);
BlockVector3 position2 = BlockVector3.at(600,128,600);
World bukkitWorld = Bukkit.geWorld("world");
BlockVector3 position1 = BlockVector3.at(300, -64, 300);
BlockVector3 position2 = BlockVector3.at(600, 128, 600);
World bukkitWorld = Bukkit.getWorld("world");
setBiomeArea(bukkitWorld, position1, position2);
}
```
Expand All @@ -45,9 +45,9 @@ Now we run the code Async to let Fawe manage server resources:
// Now we wrap our code in a runnable with a functional interface and have it executed by Bukkit's scheduler system
Runnable executeCode = () -> {
// Here we set our position 1 and 2
BlockVector3 position1 = BlockVector3.at(300,-64,300);
BlockVector3 position2 = BlockVector3.at(600,128,600);
World bukkitWorld = Bukkit.geWorld("world");
BlockVector3 position1 = BlockVector3.at(300, -64, 300);
BlockVector3 position2 = BlockVector3.at(600, 128, 600);
World bukkitWorld = Bukkit.getWorld("world");
setBiomeArea(bukkitWorld, position1, position2);
};
Bukkit.getScheduler().runTaskAsynchronously(Bukkit.getPluginManager().getPlugin("YourPluginNameHere"), executeCode);
Expand Down

0 comments on commit f61a059

Please sign in to comment.