mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-27 02:58:03 +01:00
Removing redundancy
This commit is contained in:
parent
30e5410906
commit
2f5edb6329
@ -75,14 +75,6 @@ public class mcEntityListener implements Listener
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
//Check for mcgod mode
|
||||
if(defender instanceof Player)
|
||||
{
|
||||
Player playerDefender = (Player)defender;
|
||||
if(Users.getProfile(playerDefender).getGodMode())
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
//Make sure defender is not invincible
|
||||
if(defender instanceof LivingEntity)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user