Initial port of version 2.1.0 from the 1.16 branch.
This commit is contained in:
@ -15,8 +15,8 @@ public class OnLivingSetAttackTargetEventHandler {
|
||||
|
||||
ProtectedPlayer player = LoginProtection.protected_players.getPlayer(target.getUUID());
|
||||
if (player == null) { return; }
|
||||
if (player.isLoading() && !Config.MAIN_IGNORE_PLAYER_ENABLED.get()) { return; }
|
||||
if (!player.isLoading() && !Config.POST_GRACE_IGNORE_PLAYER_ENABLED.get()) { return; }
|
||||
if (player.isLoading() && !Config.Server.MAIN_IGNORE_PLAYER_ENABLED.get()) { return; }
|
||||
if (!player.isLoading() && !Config.Server.POST_GRACE_IGNORE_PLAYER_ENABLED.get()) { return; }
|
||||
((Mob) event.getEntityLiving()).setTarget(null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user