Skip to content

Commit e126099

Browse files
authored
Add #dragon_immune tag to endstone-based ores (#4689)
1 parent 47847e7 commit e126099

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/com/gregtechceu/gtceu/core/MixinHelpers.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ public static <T> void generateGTDynamicTags(Map<ResourceLocation, List<TagLoade
177177
}
178178
}
179179

180+
if (entry.tagPrefix() == TagPrefix.oreEndstone) {
181+
// Make endstone-based ores dragon-immune
182+
tagMap.computeIfAbsent(BlockTags.DRAGON_IMMUNE.location(), $ -> new ArrayList<>()).addAll(entries);
183+
}
184+
180185
if (entry.tagPrefix() == TagPrefix.frameGt) {
181186
tagMap.computeIfAbsent(CustomTags.SLOW_WALKABLE_BLOCKS.location(), path -> new ArrayList<>())
182187
.addAll(entries);

0 commit comments

Comments
 (0)