Skip to content

Commit

Permalink
fix: don't show damage log if cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Jul 15, 2024
1 parent 35e1b66 commit d168a0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "net.azisaba"
version = "6.10.2"
version = "6.10.3"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void message(Player p, String type, double damage, boolean send, Entity e
@EventHandler(priority = EventPriority.MONITOR)
public void onDamaged(EntityDamageEvent e) {

if ( !(e.getEntity() instanceof Player) ) return;
if ( !(e.getEntity() instanceof Player) || e.isCancelled()) return;

Player player = (Player) e.getEntity();

Expand Down

0 comments on commit d168a0b

Please sign in to comment.