more range

This commit is contained in:
MidnightTale 2023-04-24 22:08:00 +07:00
commit b3784bc2f2

View file

@ -75,7 +75,7 @@ public class FoliaFlow extends JavaPlugin implements Listener {
if (entity.getType() == EntityType.FALLING_BLOCK && entity.getWorld().getEnvironment() == World.Environment.THE_END) { if (entity.getType() == EntityType.FALLING_BLOCK && entity.getWorld().getEnvironment() == World.Environment.THE_END) {
Location centerLoc = new Location(entity.getWorld(), 100, 48.5, 0); Location centerLoc = new Location(entity.getWorld(), 100, 48.5, 0);
Location loc = entity.getLocation(); Location loc = entity.getLocation();
if (loc.distance(centerLoc) <= 1) { if (loc.distance(centerLoc) <= 2) {
// Set the initial velocity of the falling block only if it doesn't have a velocity stored // Set the initial velocity of the falling block only if it doesn't have a velocity stored
if (!velocitiesMap.containsKey(entity)) { if (!velocitiesMap.containsKey(entity)) {
int index = counter % 4; int index = counter % 4;