@@ -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
3131public 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
4646Runnable 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};
5353Bukkit . getScheduler(). runTaskAsynchronously(Bukkit . getPluginManager(). getPlugin(" YourPluginNameHere" ), executeCode);
0 commit comments