From f61a059dc83e47baf2c6d7dff8338b59b5942711 Mon Sep 17 00:00:00 2001
From: TheMeinerLP
Date: Sun, 7 Apr 2024 14:31:42 +0200
Subject: [PATCH] Fiy typo and apply fawe syntax
---
fastasyncworldedit/API/fill-region-by-pattern.md | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
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);