mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Another fix to make us more compatible with other plugins
This commit is contained in:
parent
7b47d32a96
commit
f532630d1b
@ -9,6 +9,7 @@ Key:
|
|||||||
|
|
||||||
Version 1.3.11
|
Version 1.3.11
|
||||||
+ Added compatibility with bow-wielding NPCs from Citizens/NPC mods
|
+ Added compatibility with bow-wielding NPCs from Citizens/NPC mods
|
||||||
|
+ Added compatibility for pvp-prevention plugins for Serrated Strikes
|
||||||
= Fixed bug where mcMMO could throw NPE errors if trees cut down were from a custom mod and had an id of 17
|
= Fixed bug where mcMMO could throw NPE errors if trees cut down were from a custom mod and had an id of 17
|
||||||
= Fixed bug where mcMMO would ignore other block-protection plugins for various abilities
|
= Fixed bug where mcMMO would ignore other block-protection plugins for various abilities
|
||||||
|
|
||||||
|
@ -504,6 +504,14 @@ public class Combat {
|
|||||||
if (Users.getProfile(defender).getGodMode()) {
|
if (Users.getProfile(defender).getGodMode()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//It may seem a bit redundant but we need a check here to prevent bleed from being applied in applyAbilityAoE()
|
||||||
|
EntityDamageEvent ede = new FakeEntityDamageByEntityEvent(player, entity, EntityDamageEvent.DamageCause.ENTITY_ATTACK, 1);
|
||||||
|
mcMMO.p.getServer().getPluginManager().callEvent(ede);
|
||||||
|
|
||||||
|
if (ede.isCancelled()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (entity instanceof Tameable) {
|
else if (entity instanceof Tameable) {
|
||||||
Tameable pet = (Tameable) entity;
|
Tameable pet = (Tameable) entity;
|
||||||
|
Loading…
Reference in New Issue
Block a user