Skip to content

Commit

Permalink
Merge pull request #3 from Conclure/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
conclube authored Oct 8, 2020
2 parents ee56cf1 + 6947a8b commit b4fb833
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'me.conclure'
version '1.1.0'
version '1.1.1'

targetCompatibility = sourceCompatibility = JavaVersion.VERSION_1_8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
import me.conclure.eventbuilder.internal.PredicateConsumer;
import me.conclure.eventbuilder.internal.UnregisterPredicate;
import org.bukkit.Bukkit;
import org.bukkit.event.*;
import org.bukkit.event.Event;
import org.bukkit.event.EventException;
import org.bukkit.event.EventPriority;
import org.bukkit.event.HandlerList;
import org.bukkit.event.Listener;
import org.bukkit.plugin.EventExecutor;
import org.bukkit.plugin.Plugin;

Expand Down Expand Up @@ -126,9 +130,9 @@ public void execute(Listener listener,
} else if (o instanceof PredicateConsumer.Filter) {
PredicateConsumer.Filter<T> filter = (PredicateConsumer.Filter<T>) o;
if (!filter.getPredicate().test(eventCasted)) {
filter.getConsumer().accept(eventCasted);
break;
}
filter.getConsumer().accept(eventCasted);
} else if (o instanceof Predicate && !((Predicate<T>) o).test(eventCasted)) {
break;
} else if (o instanceof Consumer) {
Expand Down

0 comments on commit b4fb833

Please sign in to comment.