From 160735b731dbae6469ef7f47c73304b4c6ea314c Mon Sep 17 00:00:00 2001 From: EDToaster Date: Sun, 22 Oct 2023 16:52:56 -0700 Subject: [PATCH] Fixes #247 Fluid Car not rendering fluid --- .../java/dev/murad/shipping/event/ModClientEventHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/murad/shipping/event/ModClientEventHandler.java b/src/main/java/dev/murad/shipping/event/ModClientEventHandler.java index 2db1bec8..04b9b349 100644 --- a/src/main/java/dev/murad/shipping/event/ModClientEventHandler.java +++ b/src/main/java/dev/murad/shipping/event/ModClientEventHandler.java @@ -172,7 +172,7 @@ public static void onRegisterEntityRenderers(EntityRenderersEvent.RegisterRender .insertModel(CubeInsertCarModel::new, CubeInsertCarModel.LAYER_LOCATION, ShippingMod.entityTexture("car/barrel_insert.png")) .build()); - event.registerEntityRenderer(ModEntityTypes.FLUID_CAR.get(), ctx -> new MultipartCarRenderer.Builder<>(ctx) + event.registerEntityRenderer(ModEntityTypes.FLUID_CAR.get(), ctx -> new FluidTankCarRenderer.Builder<>(ctx) .baseModel(BaseCarModel::new, BaseCarModel.LAYER_LOCATION, ShippingMod.entityTexture("car/base.png")) .trimModel(TrimCarModel::new, TrimCarModel.LAYER_LOCATION, ShippingMod.entityTexture("car/trim.png")) .insertModel(FluidTankInsertCarModel::new, FluidTankInsertCarModel.LAYER_LOCATION, ShippingMod.entityTexture("car/fluid_tank_insert.png"))