Skip to content

Commit

Permalink
Fix MoLang
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyvv committed Feb 12, 2022
1 parent 190c03f commit 8919d98
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Alex.ResourcePackLib/Alex.ResourcePackLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platforms>x64;AnyCPU</Platforms>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Alex.MoLang" Version="2022.2.7.162539" />
<PackageReference Include="Alex.MoLang" Version="2022.2.12.154444" />
<PackageReference Include="DotNetZip.NetStandard" Version="1.12.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="NLog" Version="4.7.12" />
Expand Down
11 changes: 10 additions & 1 deletion src/Alex/Graphics/Models/Entity/Animations/AnimationComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
using ConcreteMC.MolangSharp.Parser;
using ConcreteMC.MolangSharp.Parser.Expressions;
using ConcreteMC.MolangSharp.Runtime;
using ConcreteMC.MolangSharp.Runtime.Exceptions;
using ConcreteMC.MolangSharp.Runtime.Struct;
using ConcreteMC.MolangSharp.Runtime.Value;
using ConcreteMC.MolangSharp.Utils;
using Microsoft.Xna.Framework;
Expand Down Expand Up @@ -521,7 +523,14 @@ void ITicked.OnTick()
_deltaTimeStopwatch.Stop();
//Stopwatch sw = Stopwatch.StartNew();
//_queryStruct?.Tick(_deltaTimeStopwatch.Elapsed);
ProcessAnimations();
try
{
ProcessAnimations();
}
catch (MoLangRuntimeException ex)
{
Log.Error(ex, $"Failed to process animation.");
}
//sw.Stop();
//if (sw.Elapsed.TotalMilliseconds > 10)

Expand Down

0 comments on commit 8919d98

Please sign in to comment.