Fix incorrect field being used for pre-bake event

This commit is contained in:
embeddedt 2023-07-20 10:43:23 -04:00
parent 42298947cc
commit 0767b6e9cf
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -102,7 +102,7 @@ public abstract class ModelBakerImplMixin {
if(!wasMissingModel) {
for(ModernFixClientIntegration integration : ModernFixClient.CLIENT_INTEGRATIONS) {
try {
toReplace = integration.onUnbakedModelPreBake(arg, toReplace, (ModelBakery)(Object)this);
toReplace = integration.onUnbakedModelPreBake(arg, toReplace, this.field_40571);
} catch(RuntimeException e) {
ModernFix.LOGGER.error("Exception firing model pre-bake event for {}", arg, e);
}