Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreeam-qwq committed Dec 16, 2024
1 parent b564a46 commit bf1db1f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main/java/cn/dreeam/surf/util/ItemUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -304,13 +304,6 @@ private static List<String> initIllegalBlocks() {
"REINFORCED_DEEPSLATE"
));

// <= 1.12.2
if (Util.isNewerAndEqual(12, 0)) {
list.addAll(Arrays.asList(

));
}

return list;
}

Expand Down Expand Up @@ -392,5 +385,8 @@ private static Map<String, Integer> initIllegalEnchantsMap() {

return map;
}

public static String getItemDisplayName(ItemStack itemStack) {
return PlainTextComponentSerializer.plainText().serialize(itemStack.displayName());
}
}

0 comments on commit bf1db1f

Please sign in to comment.