mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +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);
|
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
|
//Make sure defender is not invincible
|
||||||
if(defender instanceof LivingEntity)
|
if(defender instanceof LivingEntity)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user