mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 02:55:17 +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
@@ -314,7 +314,7 @@ public class ModelAnimationDebug
|
||||
}*/
|
||||
else if(asm.currentState().equals("default"))
|
||||
{
|
||||
float time = Animation.getWorldTime(getWorld());
|
||||
float time = Animation.getWorldTime(getWorld(), Animation.getPartialTickTime());
|
||||
clickTime.setValue(time);
|
||||
//offset.setValue(time);
|
||||
//asm.transition("moving");
|
||||
@@ -322,7 +322,7 @@ public class ModelAnimationDebug
|
||||
}
|
||||
else if(asm.currentState().equals("moving"))
|
||||
{
|
||||
clickTime.setValue(Animation.getWorldTime(getWorld()));
|
||||
clickTime.setValue(Animation.getWorldTime(getWorld(), Animation.getPartialTickTime()));
|
||||
asm.transition("stopping");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user