mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Pass tick counter to custom render handlers (#5744)
This commit is contained in:
1 parent
ff80ab6a23
commit
8742d74e93
4 files changed
+4
-4
No files matched your search
@@ -485,7 +485,7 @@ public class CloudRenderer implements ISelectiveResourceReloadListener
|
||||
IRenderHandler renderer = world.dimension.getCloudRenderer();
|
||||
if (renderer != null)
|
||||
{
|
||||
renderer.render(partialTicks, world, client);
|
||||
renderer.render(cloudTicks, partialTicks, world, client);
|
||||
return true;
|
||||
}
|
||||
return getCloudRenderer().render(cloudTicks, partialTicks);
|
||||
|
||||
@@ -28,5 +28,5 @@ import net.minecraftforge.api.distmarker.OnlyIn;
|
||||
public interface IRenderHandler
|
||||
{
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
public abstract void render(float partialTicks, ClientWorld world, Minecraft mc);
|
||||
public abstract void render(int ticks, float partialTicks, ClientWorld world, Minecraft mc)
|
||||
}
|
||||
Reference in new issue
Block a user