Fixed minor race condition between mouse clicks and TESR in the animation example.

This commit is contained in:
RainWarrior committed 2016-01-25 17:39:43 +03:00
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));
}