Remove code smells due to nonNull Spigot settings

Let's see if the nonNull's are really true!
This commit is contained in:
tastybento 2019-03-23 16:34:04 -07:00
parent 23491d0c4a
commit 1f341f4929
2 changed files with 0 additions and 9 deletions

View File

@ -40,9 +40,6 @@ public class JoinLeaveListener implements Listener {
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
public void onPlayerJoin(final PlayerJoinEvent event) {
if (event.getPlayer() == null) {
return;
}
User user = User.getInstance(event.getPlayer());
if (user.getUniqueId() == null) {
return;

View File

@ -2,7 +2,6 @@ package world.bentobox.bentobox.listeners;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
@ -81,11 +80,6 @@ public class StandardSpawnProtectionListener implements Listener {
// Not used in island worlds
return false;
}
// Find out what is exploding
Entity expl = e.getEntity();
if (expl == null) {
return false;
}
e.blockList().removeIf(b -> atSpawn(b.getLocation()));
return true;
}