Scheduler

This commit is contained in:
MidnightTale 2023-04-11 15:58:57 +07:00
commit 241254ee4e

View file

@ -41,7 +41,7 @@ public class Bbsdfia extends JavaPlugin implements Listener {
World world = Bukkit.getServer().getWorld("world");
Location spawnLoc = new Location(world, 100, 50, 0);
*/
Bukkit.getScheduler().runTask(this, () -> {
FallingBlock dummy = loc2.getWorld().spawnFallingBlock(loc2, ((FallingBlock) entity).getBlockData());
Vector dummyVel = vel.clone();
dummyVel.setY(-dummyVel.getY());
@ -51,6 +51,7 @@ public class Bbsdfia extends JavaPlugin implements Listener {
dummyVel.add(new Vector(0, 0.3, 0));
dummy.setVelocity(dummyVel);
});
}
}
}