Code cleanup

Code cleanup
This commit is contained in:
Brianna 2020-04-18 09:22:57 -04:00
parent 96076eb0e4
commit 58fa0cbe61
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ public class HopTask extends BukkitRunnable {
// Cycle through modules.
hopper.getLevel().getRegisteredModules().stream()
.filter(module -> module != null)
.filter(Objects::nonNull)
.forEach(module -> {
// Run Module
module.run(hopper, hopperCache);

View File

@ -80,7 +80,7 @@ public class StorageContainerCache {
} else {
// legacy check
Material material = block.getType();
BlockFace[] faces = new BlockFace[]{BlockFace.NORTH, BlockFace.SOUTH, BlockFace.EAST, BlockFace.WEST};
BlockFace[] faces = new BlockFace[] {BlockFace.NORTH, BlockFace.SOUTH, BlockFace.EAST, BlockFace.WEST};
for (BlockFace face : faces) {
Block adjacentBlock = block.getRelative(face);