Migration Mappings Detection

Still having issues with source locations, would need to check it out first

Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
shedaniel
2021-05-08 12:50:17 +08:00
parent d91d7c096c
commit 3f576a44ab
10 changed files with 345 additions and 49 deletions

View File

@@ -72,7 +72,7 @@ public class LoomDependencyManager {
return provider;
}
public <T> T getProvider(Class<T> clazz) {
public <T> T getProvider(Class<? extends T> clazz) {
for (DependencyProvider provider : dependencyProviderList) {
if (provider.getClass() == clazz) {
return (T) provider;