PartialModel gets called from the right place

This commit is contained in:
Jozufozu 2021-07-09 13:39:56 -07:00
parent 352f213429
commit 2eb9c7b6eb

View file

@ -127,8 +127,6 @@ public class CreateClient {
} }
public static void onModelRegistry(ModelRegistryEvent event) { public static void onModelRegistry(ModelRegistryEvent event) {
PartialModel.onModelRegistry(event);
getCustomRenderedItems().foreach((item, modelFunc) -> modelFunc.apply(null) getCustomRenderedItems().foreach((item, modelFunc) -> modelFunc.apply(null)
.getModelLocations() .getModelLocations()
.forEach(ModelLoader::addSpecialModel)); .forEach(ModelLoader::addSpecialModel));
@ -136,7 +134,6 @@ public class CreateClient {
public static void onModelBake(ModelBakeEvent event) { public static void onModelBake(ModelBakeEvent event) {
Map<ResourceLocation, IBakedModel> modelRegistry = event.getModelRegistry(); Map<ResourceLocation, IBakedModel> modelRegistry = event.getModelRegistry();
PartialModel.onModelBake(event);
getCustomBlockModels() getCustomBlockModels()
.foreach((block, modelFunc) -> swapModels(modelRegistry, getAllBlockStateModelLocations(block), modelFunc)); .foreach((block, modelFunc) -> swapModels(modelRegistry, getAllBlockStateModelLocations(block), modelFunc));