Make patched-in StairsBlock constructor public

Also fix supplier generic being too narrow in DeferredRegister#register
This commit is contained in:
tterrag committed 2019-09-27 17:56:30 -04:00
1 parent f4bab8b8c1
commit b3631b707c
2 files changed
+2 -2

No files matched your search

@@ -71,7 +71,7 @@ public class DeferredRegister<T extends IForgeRegistryEntry<T>>
* @return A RegistryObject that will be updated with when the entries in the registry change.
*/
@SuppressWarnings("unchecked")
public <I extends T> RegistryObject<I> register(final String name, final Supplier<I> sup)
public <I extends T> RegistryObject<I> register(final String name, final Supplier<? extends I> sup)
{
Objects.requireNonNull(name);
Objects.requireNonNull(sup);