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

Commit c5740cc

Browse files
committed
a
1 parent 9bd2f37 commit c5740cc

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/main/java/xyz/hynse/foliaflow/FoliaFlow.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,12 @@ public class FoliaFlow extends JavaPlugin implements Listener {
2222
private final Vector velocity4 = new Vector(1, 0.5, 0);
2323
private final Vector[] velocities = {velocity1, velocity2, velocity3, velocity4};
2424
private int counter = 0;
25-
private final Set<Location> movingBlocks = new HashSet<>();
26-
private World endWorld;
27-
private Location obsidianLocation;
28-
25+
//private final Set<Location> movingBlocks = new HashSet<>();
2926

3027

3128
@Override
3229
public void onEnable() {
3330
super.onEnable();
34-
endWorld = getServer().getWorld("world_the_end"); // change "world_the_end" to the name of your end world
35-
obsidianLocation = new Location(endWorld, 100, 48, 0); // change the coordinates to the location of your obsidian platform
36-
3731
getServer().getPluginManager().registerEvents(this, this);
3832
getServer().getConsoleSender().sendMessage("");
3933
getServer().getConsoleSender().sendMessage(ChatColor.GREEN + " ______________ ");
@@ -117,7 +111,7 @@ public void onChunkLoadend(ChunkLoadEvent e) {
117111
entity.setVelocity(velocity);
118112

119113
// Remove the block from the movingBlocks set after a delay, to prevent it from being immediately moved again
120-
getServer().getScheduler().runTaskLater(this, () -> movingBlocks.remove(loc.getBlock().getLocation()), 20L);
114+
//getServer().getScheduler().runTaskLater(this, () -> movingBlocks.remove(loc.getBlock().getLocation()), 20L);
121115
}
122116
}
123117
}

0 commit comments

Comments
 (0)