Skip to content

Commit e4ff576

Browse files
committed
Update ReplacementRegistry.java
1 parent 536e6be commit e4ff576

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/mrbysco/constructionstick/basics/ReplacementRegistry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ public class ReplacementRegistry {
1818
public static void init() {
1919
replacements.clear();
2020

21-
for (Object key : ConstructionConfig.SIMILAR_BLOCKS.get()) {
21+
for (String key : ConstructionConfig.SIMILAR_BLOCKS.get()) {
2222
if (!(key instanceof String)) continue;
2323
HashSet<Item> set = new HashSet<>();
2424

25-
for (String id : ((String) key).split(";")) {
25+
for (String id : key.split(";")) {
2626
Item item = BuiltInRegistries.ITEM.get(ResourceLocation.tryParse(id));
2727
if (item == null || item == Items.AIR) {
2828
ConstructionStick.LOGGER.warn("Replacement Registry: Could not find item {}", id);

0 commit comments

Comments
 (0)