diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/github/technus/tectech/thing/block/TileEyeOfHarmony.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/com/github/technus/tectech/thing/block/TileEyeOfHarmony.java b/src/main/java/com/github/technus/tectech/thing/block/TileEyeOfHarmony.java index 1907906750..655a531432 100644 --- a/src/main/java/com/github/technus/tectech/thing/block/TileEyeOfHarmony.java +++ b/src/main/java/com/github/technus/tectech/thing/block/TileEyeOfHarmony.java @@ -111,14 +111,15 @@ public class TileEyeOfHarmony extends TileEntity { private static final Set<String> BLACKLISTED_BLOCKS = Collections .unmodifiableSet(new HashSet<>(Arrays.asList("Tf", "Ow", "ED", "EA", "VA"))); // Map of strings to blocks - private static final Map<String, Block> BLOCKS; + private static final Map<String, Block> BLOCKS = new HashMap<>(); static { // Initialize the map of blocks - BLOCKS = ModBlocks.blocks; - - // Remove blacklisted blocks from the map - BLOCKS.keySet().removeAll(BLACKLISTED_BLOCKS); + ModBlocks.blocks.forEach((dimString, dimBlock) -> { + if (!BLACKLISTED_BLOCKS.contains(dimString)) { + BLOCKS.put(dimString, dimBlock); + } + }); } private static final float MAX_ANGLE = 30; |