Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
patch 2.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Invvk committed Nov 7, 2021
1 parent 7eea044 commit f603d11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ protected boolean onSetValue(LocalPlayer localPlayer, Location from, Location to
protected boolean onAbsentValue(LocalPlayer localPlayer, Location from, Location to, ApplicableRegionSet toSet, Set<PotionEffect> lastValue, MoveType moveType) {
final Player player = WGEFUtils.wrapPlayer(localPlayer);
if (!player.getActivePotionEffects().isEmpty()) {
this.give_potions.forEach(e -> {
if (player.hasPotionEffect(e.getType()))
player.removePotionEffect(e.getType());
});
if (this.give_potions != null && !this.give_potions.isEmpty()) {
this.give_potions.forEach(e -> {
if (player.hasPotionEffect(e.getType()))
player.removePotionEffect(e.getType());
});
}
}
this.give_potions = WGEFUtils.queryValueUnchecked(player, player.getWorld(), toSet.getRegions(), WGEFlags.GIVE_EFFECTS);
this.handleValue(player, this.give_potions);
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group 'io.github.invvk'
version '2.1.8'
version '2.1.9'

repositories {
mavenCentral()
Expand Down

0 comments on commit f603d11

Please sign in to comment.