aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorminecraft7771 <maxim235@gmx.de>2023-02-16 21:52:36 +0100
committerminecraft7771 <maxim235@gmx.de>2023-02-16 21:52:36 +0100
commit338d924537ea154851e94c33cff1b82f21ba6a71 (patch)
treec34b7045dcc4da3fd38c4140149164d66dc11259 /src/main/java
parent5fcd96ae9bc7e0846f3c03e10731024378aa8b47 (diff)
downloadGT5-Unofficial-338d924537ea154851e94c33cff1b82f21ba6a71.tar.gz
GT5-Unofficial-338d924537ea154851e94c33cff1b82f21ba6a71.tar.bz2
GT5-Unofficial-338d924537ea154851e94c33cff1b82f21ba6a71.zip
Fixed blacklisted blocks deleting entries from ModBlocks.blocks
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/github/technus/tectech/thing/block/TileEyeOfHarmony.java11
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;