mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-22 18:25:59 +01:00
Code cleanup
Code cleanup
This commit is contained in:
parent
96076eb0e4
commit
58fa0cbe61
@ -106,7 +106,7 @@ public class HopTask extends BukkitRunnable {
|
|||||||
|
|
||||||
// Cycle through modules.
|
// Cycle through modules.
|
||||||
hopper.getLevel().getRegisteredModules().stream()
|
hopper.getLevel().getRegisteredModules().stream()
|
||||||
.filter(module -> module != null)
|
.filter(Objects::nonNull)
|
||||||
.forEach(module -> {
|
.forEach(module -> {
|
||||||
// Run Module
|
// Run Module
|
||||||
module.run(hopper, hopperCache);
|
module.run(hopper, hopperCache);
|
||||||
|
@ -80,7 +80,7 @@ public class StorageContainerCache {
|
|||||||
} else {
|
} else {
|
||||||
// legacy check
|
// legacy check
|
||||||
Material material = block.getType();
|
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) {
|
for (BlockFace face : faces) {
|
||||||
Block adjacentBlock = block.getRelative(face);
|
Block adjacentBlock = block.getRelative(face);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user