Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
MidnightTale committed Apr 12, 2023
1 parent 9bd2f37 commit c5740cc
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/main/java/xyz/hynse/foliaflow/FoliaFlow.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,12 @@ public class FoliaFlow extends JavaPlugin implements Listener {
private final Vector velocity4 = new Vector(1, 0.5, 0);
private final Vector[] velocities = {velocity1, velocity2, velocity3, velocity4};
private int counter = 0;
private final Set<Location> movingBlocks = new HashSet<>();
private World endWorld;
private Location obsidianLocation;

//private final Set<Location> movingBlocks = new HashSet<>();


@Override
public void onEnable() {
super.onEnable();
endWorld = getServer().getWorld("world_the_end"); // change "world_the_end" to the name of your end world
obsidianLocation = new Location(endWorld, 100, 48, 0); // change the coordinates to the location of your obsidian platform

getServer().getPluginManager().registerEvents(this, this);
getServer().getConsoleSender().sendMessage("");
getServer().getConsoleSender().sendMessage(ChatColor.GREEN + " ______________ ");
Expand Down Expand Up @@ -117,7 +111,7 @@ public void onChunkLoadend(ChunkLoadEvent e) {
entity.setVelocity(velocity);

// Remove the block from the movingBlocks set after a delay, to prevent it from being immediately moved again
getServer().getScheduler().runTaskLater(this, () -> movingBlocks.remove(loc.getBlock().getLocation()), 20L);
//getServer().getScheduler().runTaskLater(this, () -> movingBlocks.remove(loc.getBlock().getLocation()), 20L);
}
}
}
Expand Down

0 comments on commit c5740cc

Please sign in to comment.