Skip to content
Permalink
Browse files

experimental fix for #122

  • Loading branch information...
mcmonkey4eva committed Dec 28, 2016
1 parent 410b38b commit e095129115bb516e32740cc807456560092d16d9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/mcmonkey/sentinel/SentinelTrait.java
@@ -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;
}

0 comments on commit e095129

Please sign in to comment.
You can’t perform that action at this time.