Skip to content

Commit

Permalink
Switcharoo on detecting ThreadSafeISBRHFactory... (#318)
Browse files Browse the repository at this point in the history
other method apparently wasn't working
  • Loading branch information
mitchej123 authored Feb 21, 2024
1 parent 37f638a commit 8898a6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private Object getWrapped(Map<Integer, ISimpleBlockRenderingHandler> instance, O
throw new RuntimeException(e.getCause());
}
});
} else if (mainThreadHandler.getClass().isInstance(ThreadSafeISBRHFactory.class)) {
} else if (ThreadSafeISBRHFactory.class.isAssignableFrom(mainThreadHandler.getClass())) {
return THREAD_LOCAL_MAP.get().computeIfAbsent(mainThreadHandler.getClass(), k -> ((ThreadSafeISBRHFactory) mainThreadHandler).newInstance());
}
}
Expand Down

0 comments on commit 8898a6f

Please sign in to comment.