Skip to content

Commit

Permalink
Fix FluidRendererCompat registration for all forge fluids
Browse files Browse the repository at this point in the history
Fixes #329
  • Loading branch information
Su5eD committed Sep 27, 2023
1 parent 0e6cb7f commit 4ac5e37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static void onClientSetup(FMLClientSetupEvent event) {
Map<FluidType, FluidRenderHandler> forgeHandlers = new HashMap<>();
for (Map.Entry<RegistryKey<Fluid>, Fluid> entry : ForgeRegistries.FLUIDS.getEntries()) {
Fluid fluid = entry.getValue();
if (fluid != Fluids.EMPTY && IClientFluidTypeExtensions.of(fluid) == IClientFluidTypeExtensions.DEFAULT) {
if (fluid != Fluids.EMPTY && FluidRenderHandlerRegistry.INSTANCE.get(fluid) == null) {
FluidRenderHandler handler = forgeHandlers.computeIfAbsent(fluid.getFluidType(), ForgeFluidRenderHandler::new);
((FluidRenderHandlerRegistryImpl) FluidRenderHandlerRegistry.INSTANCE).registerHandlerOnly(fluid, handler);
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ fabric-client-tags-api-v1-version=1.1.1
loom.platform=forge
forge_version=1.20.1-47.1.3
pack_format=15
forgified_version=1.9.20
forgified_version=1.9.21
forge_fabric_loader_version=2.3.4+0.14.21+1.20.1

0 comments on commit 4ac5e37

Please sign in to comment.