ScheduledTask
This commit is contained in:
parent
e5afd9abbd
commit
8bb6e08063
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package xyz.hynse.bbsdfia;
|
||||
|
||||
import io.papermc.paper.threadedregions.scheduler.ScheduledTask;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
|
|
@ -41,7 +42,7 @@ public class Bbsdfia extends JavaPlugin implements Listener {
|
|||
World world = Bukkit.getServer().getWorld("world");
|
||||
Location spawnLoc = new Location(world, 100, 50, 0);
|
||||
*/
|
||||
Bukkit.getAsyncScheduler().runNow(this, (task) -> {
|
||||
Bukkit.getAsyncScheduler().runNow(this, (ScheduledTask task) -> {
|
||||
FallingBlock dummy = loc2.getWorld().spawnFallingBlock(loc2, ((FallingBlock) entity).getBlockData());
|
||||
Vector dummyVel = vel.clone();
|
||||
dummyVel.setY(-dummyVel.getY());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue