mirror of
https://github.com/ViaVersion/ViaRewind-Legacy-Support.git
synced 2025-02-01 22:41:31 +01:00
Fix version check in area effect cloud emulation
This commit is contained in:
parent
64039f847c
commit
081c9c9a6f
@ -40,7 +40,7 @@ public class AreaEffectCloudEmulator implements Listener {
|
||||
|
||||
public AreaEffectCloudEmulator(final BukkitPlugin plugin) {
|
||||
Bukkit.getScheduler().runTaskTimer(plugin, () -> {
|
||||
final Set<Player> affectedPlayers = Bukkit.getOnlinePlayers().stream().filter(p -> Via.getAPI().getPlayerProtocolVersion(p).newerThanOrEqualTo(ProtocolVersion.v1_8)).collect(Collectors.toSet());
|
||||
final Set<Player> affectedPlayers = Bukkit.getOnlinePlayers().stream().filter(p -> Via.getAPI().getPlayerProtocolVersion(p).olderThanOrEqualTo(ProtocolVersion.v1_8)).collect(Collectors.toSet());
|
||||
effectClouds.removeIf(e -> !e.isValid());
|
||||
effectClouds.forEach(cloud -> {
|
||||
final Location location = cloud.getLocation();
|
||||
|
Loading…
Reference in New Issue
Block a user