1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-18 01:42:32 +01:00

simply if code

This commit is contained in:
Mixpa
2019-08-25 21:51:19 +08:00
parent 5ea2c493e8
commit dfeab6b558
5 changed files with 7 additions and 27 deletions

View File

@@ -62,10 +62,7 @@ public class EventUtils {
* @return true if damage is NOT from an unnatural mcMMO skill (such as bleed DOTs)
*/
public static boolean isDamageFromMcMMOComplexBehaviour(Event event) {
if (event instanceof FakeEntityDamageEvent) {
return true;
}
return false;
return event instanceof FakeEntityDamageEvent;
}
/**