mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Removed unneeded null check, according to eclipse :3
This commit is contained in:
parent
7799acec05
commit
1443e2f6b8
@ -23,7 +23,7 @@ public class CommandHelper {
|
||||
if (sender instanceof Player) {
|
||||
Player player = (Player) sender;
|
||||
|
||||
if (player != null && !Permissions.getInstance().permission(player, permission)) {
|
||||
if (!Permissions.getInstance().permission(player, permission)) {
|
||||
player.sendMessage(LocaleLoader.getString("mcMMO.NoPermission"));
|
||||
return true;
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ public class BleedTimer implements Runnable {
|
||||
for (Entry<LivingEntity, Integer> entry : bleedList.entrySet()) {
|
||||
LivingEntity entity = entry.getKey();
|
||||
|
||||
if (entry.getValue() <= 0 || entity.isDead() || entity == null) {
|
||||
if (entry.getValue() <= 0 || entity.isDead()) {
|
||||
remove(entity);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user