This commit is contained in:
MidnightTale 2023-04-13 11:48:48 +07:00
commit 9b9c978b86

View file

@ -38,8 +38,8 @@ public class FoliaFlow extends JavaPlugin implements Listener {
for (World world : Bukkit.getWorlds()) {
for (Entity entity : world.getEntities()) {
if (entity.getType() == EntityType.FALLING_BLOCK && entity.getWorld().getEnvironment() == World.Environment.THE_END) {
Location loc = entity.getLocation();
debug("Falling block spawned at location " + loc);
//Location loc = entity.getLocation();
//debug("Falling block spawned at location " + loc);
// Set the initial velocity of the falling block only if it doesn't have a velocity stored
if (!velocitiesMap.containsKey(entity)) {