9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-26 10:29:10 +00:00

Added more vanilla blocks support

This commit is contained in:
XiaoMoMi
2024-09-07 18:22:27 +08:00
parent eb3cb7b0d6
commit 558ced3517
9 changed files with 58 additions and 22 deletions

View File

@@ -38,6 +38,9 @@ public class ListUtils {
*/
@SuppressWarnings("unchecked")
public static List<String> toList(final Object obj) {
if (obj == null) {
return List.of();
}
if (obj instanceof String s) {
return List.of(s);
} else if (obj instanceof List<?> list) {