mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Added condition checks to ActorRefresher to not trigger reloading on zone changes too early.
This commit is contained in:
parent
1d3d6dc3af
commit
03a722b92f
1 changed files with 6 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ using System.ComponentModel;
|
|||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Threading.Tasks;
|
||||
using Dalamud.Game.ClientState;
|
||||
using Dalamud.Game.ClientState.Actors.Types;
|
||||
using Dalamud.Plugin;
|
||||
using Penumbra.Mods;
|
||||
|
|
@ -192,7 +193,6 @@ namespace Penumbra.Interop
|
|||
{
|
||||
case Redraw.Unload:
|
||||
WriteInvisible( actor, idx );
|
||||
|
||||
_currentFrame = 0;
|
||||
break;
|
||||
case Redraw.RedrawWithSettings:
|
||||
|
|
@ -258,6 +258,11 @@ namespace Penumbra.Interop
|
|||
|
||||
private void OnUpdateEvent( object framework )
|
||||
{
|
||||
if( _pi.ClientState.Condition[ ConditionFlag.BetweenAreas51 ] || _pi.ClientState.Condition[ ConditionFlag.BetweenAreas ] )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
switch( _currentFrame )
|
||||
{
|
||||
case 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue