mirror of
https://github.com/ViaVersion/ViaRewind-Legacy-Support.git
synced 2025-02-07 23:41:33 +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) {
|
public AreaEffectCloudEmulator(final BukkitPlugin plugin) {
|
||||||
Bukkit.getScheduler().runTaskTimer(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.removeIf(e -> !e.isValid());
|
||||||
effectClouds.forEach(cloud -> {
|
effectClouds.forEach(cloud -> {
|
||||||
final Location location = cloud.getLocation();
|
final Location location = cloud.getLocation();
|
||||||
|
Loading…
Reference in New Issue
Block a user