mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
Fix some generated models not being handheld
This commit is contained in:
1 parent
c6ed92fa32
commit
2eb19d1435
1015 files changed
+1056
-1036
No files matched your search
@@ -469,6 +469,11 @@ public class BlockstateProvider extends BlockStateProvider {
|
||||
@SafeVarargs
|
||||
public static <T> Collection<T> takeAll(Set<? extends T> src, T... items) {
|
||||
List<T> ret = Arrays.asList(items);
|
||||
for (T item : items) {
|
||||
if (!src.contains(item)) {
|
||||
Botania.LOGGER.warn("Item {} not found in set", item);
|
||||
}
|
||||
}
|
||||
if (!src.removeAll(ret)) {
|
||||
Botania.LOGGER.warn("takeAll array didn't yield anything ({})", Arrays.toString(items));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user