Initial port of version 2.1.0 from the 1.16 branch.

This commit is contained in:
2021-09-30 23:25:13 +01:00
parent 24ed48df22
commit cfdc2de08f
6 changed files with 185 additions and 83 deletions

View File

@ -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);
}