Skip to content

Commit

Permalink
随便改点啥触发 GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
3TUSK committed Sep 2, 2024
1 parent 679781e commit 6aafe19
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/org/teacon/xkdeco/init/MimicWallsLoader.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.teacon.xkdeco.init;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
Expand All @@ -12,8 +13,6 @@
import org.teacon.xkdeco.block.MimicWallBlock;
import org.teacon.xkdeco.item.MimicWallItem;

import com.google.common.collect.Lists;

import javax.annotation.ParametersAreNonnullByDefault;
import net.minecraft.MethodsReturnNonnullByDefault;
import net.minecraft.core.Holder;
Expand Down Expand Up @@ -81,7 +80,7 @@ public static void addMimicWallItems(RegisterEvent event) {
}

public static void addMimicWallTags(Map<ResourceLocation, Collection<Holder<Block>>> tags) {
List<Holder<Block>> walls = Lists.newArrayList(tags.getOrDefault(BlockTags.WALLS.location(), List.of()));
List<Holder<Block>> walls = new ArrayList<>(tags.getOrDefault(BlockTags.WALLS.location(), List.of()));
for (var holder : BuiltInRegistries.BLOCK.asHolderIdMap()) {
if (holder.value() instanceof MimicWallBlock) {
walls.add(holder);
Expand Down

0 comments on commit 6aafe19

Please sign in to comment.