diff --git a/src/main/java/com/gmail/nossr50/commands/CommandHelper.java b/src/main/java/com/gmail/nossr50/commands/CommandHelper.java index 4b120fb78..143fca68e 100644 --- a/src/main/java/com/gmail/nossr50/commands/CommandHelper.java +++ b/src/main/java/com/gmail/nossr50/commands/CommandHelper.java @@ -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; } diff --git a/src/main/java/com/gmail/nossr50/runnables/BleedTimer.java b/src/main/java/com/gmail/nossr50/runnables/BleedTimer.java index 18e0f86e9..95787d85a 100644 --- a/src/main/java/com/gmail/nossr50/runnables/BleedTimer.java +++ b/src/main/java/com/gmail/nossr50/runnables/BleedTimer.java @@ -34,7 +34,7 @@ public class BleedTimer implements Runnable { for (Entry entry : bleedList.entrySet()) { LivingEntity entity = entry.getKey(); - if (entry.getValue() <= 0 || entity.isDead() || entity == null) { + if (entry.getValue() <= 0 || entity.isDead()) { remove(entity); break; }