diff --git a/fastasyncworldedit/API/fill-region-by-pattern.md b/fastasyncworldedit/API/fill-region-by-pattern.md index c85497a..83241b0 100644 --- a/fastasyncworldedit/API/fill-region-by-pattern.md +++ b/fastasyncworldedit/API/fill-region-by-pattern.md @@ -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); } ``` @@ -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);