mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-02 22:18:24 +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) {
|
if (sender instanceof Player) {
|
||||||
Player player = (Player) sender;
|
Player player = (Player) sender;
|
||||||
|
|
||||||
if (player != null && !Permissions.getInstance().permission(player, permission)) {
|
if (!Permissions.getInstance().permission(player, permission)) {
|
||||||
player.sendMessage(LocaleLoader.getString("mcMMO.NoPermission"));
|
player.sendMessage(LocaleLoader.getString("mcMMO.NoPermission"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ public class BleedTimer implements Runnable {
|
|||||||
for (Entry<LivingEntity, Integer> entry : bleedList.entrySet()) {
|
for (Entry<LivingEntity, Integer> entry : bleedList.entrySet()) {
|
||||||
LivingEntity entity = entry.getKey();
|
LivingEntity entity = entry.getKey();
|
||||||
|
|
||||||
if (entry.getValue() <= 0 || entity.isDead() || entity == null) {
|
if (entry.getValue() <= 0 || entity.isDead()) {
|
||||||
remove(entity);
|
remove(entity);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user