From c77fd03b96967aed02abb03fc074a6966ecc2095 Mon Sep 17 00:00:00 2001 From: MidnightTale Date: Thu, 13 Apr 2023 12:45:09 +0700 Subject: [PATCH] vanilla velocity 1 --- src/main/java/xyz/hynse/foliaflow/FoliaFlow.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/xyz/hynse/foliaflow/FoliaFlow.java b/src/main/java/xyz/hynse/foliaflow/FoliaFlow.java index 013e519..50ce8bc 100644 --- a/src/main/java/xyz/hynse/foliaflow/FoliaFlow.java +++ b/src/main/java/xyz/hynse/foliaflow/FoliaFlow.java @@ -24,10 +24,12 @@ import java.util.concurrent.TimeUnit; import static org.bukkit.Bukkit.getScheduler; public class FoliaFlow extends JavaPlugin implements Listener { - private final Vector velocity1 = new Vector(0, 0.5, -1); - private final Vector velocity2 = new Vector(-1, 0.5, 0); - private final Vector velocity3 = new Vector(0, 0.5, 1); - private final Vector velocity4 = new Vector(1, 0.5, 0); + private int vh = (int) 0.1; + private int vt = (int) 0.3; + private final Vector velocity1 = new Vector(0, vh, vt); + private final Vector velocity2 = new Vector(vt, vh, 0); + private final Vector velocity3 = new Vector(0, vh, vt); + private final Vector velocity4 = new Vector(vt, vh, 0); private final Vector[] velocities = {velocity1, velocity2, velocity3, velocity4}; private int counter = 0; private final Set movingBlocks = new HashSet<>();