mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
Fixed minor race condition between mouse clicks and TESR in the animation example.
This commit is contained in:
1 parent
e929199758
commit
960717eb0c
3 files changed
+24
-2
No files matched your search
@@ -47,6 +47,7 @@ import net.minecraft.util.IThreadListener;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.storage.SaveHandler;
|
||||
import net.minecraft.world.storage.WorldInfo;
|
||||
import net.minecraftforge.client.model.animation.Animation;
|
||||
import net.minecraftforge.common.ForgeVersion;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.fml.common.eventhandler.EventBus;
|
||||
@@ -337,6 +338,7 @@ public class FMLCommonHandler
|
||||
|
||||
public void onRenderTickStart(float timer)
|
||||
{
|
||||
Animation.setClientPartialTickTime(timer);
|
||||
bus().post(new TickEvent.RenderTickEvent(Phase.START, timer));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user