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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user