mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
quick fix : Condition is covered by further condition
This commit is contained in:
1 parent
4ad67bc34b
commit
f446ea280f
17 files changed
+16
-25
No files matched your search
@@ -18,7 +18,7 @@ public class ItemHelper {
|
||||
Class<?> clazz = Class.forName(classPackage);
|
||||
Field field = clazz.getDeclaredField(name);
|
||||
Object ret = field.get(null);
|
||||
if (ret != null && (ret instanceof ItemStack || ret instanceof Item)) return ret;
|
||||
if ((ret instanceof ItemStack || ret instanceof Item)) return ret;
|
||||
return null;
|
||||
} catch (Exception e) {
|
||||
TConstruct.logger.warn("Could not find " + name + "from " + classPackage);
|
||||
|
||||
Reference in new issue
Block a user