Skip to content

Commit

Permalink
experimental fix for #122
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Dec 28, 2016
1 parent 410b38b commit e095129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/mcmonkey/sentinel/SentinelTrait.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public void whenAttacksAreHappening(EntityDamageByEntityEvent event) {
}
if (event.getDamager().getUniqueId().equals(getLivingEntity().getUniqueId())) {
if (SentinelPlugin.instance.getConfig().getBoolean("random.enforce damage", false)) {
((LivingEntity) event.getEntity()).damage(getDamage());
((LivingEntity) event.getEntity()).damage(event.getFinalDamage());
event.setCancelled(true);
return;
}
Expand Down

0 comments on commit e095129

Please sign in to comment.