Only prefill block suppliers

This commit is contained in:
embeddedt 2023-01-07 13:07:56 -05:00
parent 0062bc9bae
commit 933f495d64
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -25,7 +25,7 @@ public class EventDispatcherMixin {
if(registry == null)
return;
ResourceLocation location = registry.getRegistryName();
if(location == null)
if(location == null || !(location.getNamespace().equals("minecraft") && location.getPath().equals("block")))
return;
if(!hasRegistryBaked.getOrDefault(location, false)) {
DeferredRegisterBaker.bakeSuppliers(location);