aboutsummaryrefslogtreecommitdiff
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
parent5fcd96ae9bc7e0846f3c03e10731024378aa8b47 (diff)
downloadGT5-Unofficial-338d924537ea154851e94c33cff1b82f21ba6a71.tar.gz
GT5-Unofficial-338d924537ea154851e94c33cff1b82f21ba6a71.tar.bz2
GT5-Unofficial-338d924537ea154851e94c33cff1b82f21ba6a71.zip
Fixed blacklisted blocks deleting entries from ModBlocks.blocks
-rw-r--r--dependencies.gradle2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/block/TileEyeOfHarmony.java11
2 files changed, 7 insertions, 6 deletions
diff --git a/dependencies.gradle b/dependencies.gradle
index 657e29fe44..a17694aaf2 100644
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -4,7 +4,7 @@ dependencies {
shadowImplementation('com.github.GTNewHorizons:AVRcore:1.0.1')
api("com.github.GTNewHorizons:GT5-Unofficial:5.09.41.275:dev")
api('com.github.GTNewHorizons:Yamcl:0.5.84:dev')
- implementation('com.github.GTNewHorizons:GTNEIOrePlugin:1.0.27:dev')
+ implementation('com.github.GTNewHorizons:GTNEIOrePlugin:99.99.99:dev')
compileOnly("com.github.GTNewHorizons:TinkersGregworks:master-SNAPSHOT:dev") {transitive = false}
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;