mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-22 16:39:27 +01:00
Fix assigning current default to new character.
This commit is contained in:
parent
e281843760
commit
b9662e39a9
2 changed files with 10 additions and 2 deletions
|
|
@ -340,10 +340,17 @@ public class Penumbra : IDalamudPlugin
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( oldCollection == null && type.IsSpecial() )
|
if( oldCollection == null )
|
||||||
|
{
|
||||||
|
if( type.IsSpecial() )
|
||||||
{
|
{
|
||||||
CollectionManager.CreateSpecialCollection( type );
|
CollectionManager.CreateSpecialCollection( type );
|
||||||
}
|
}
|
||||||
|
else if( type is CollectionType.Character )
|
||||||
|
{
|
||||||
|
CollectionManager.CreateCharacterCollection( characterName! );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CollectionManager.SetCollection( collection, type, characterName );
|
CollectionManager.SetCollection( collection, type, characterName );
|
||||||
Dalamud.Chat.Print( $"Set {collection.Name} as {type.ToName()} Collection{( characterName != null ? $" for {characterName}." : "." )}" );
|
Dalamud.Chat.Print( $"Set {collection.Name} as {type.ToName()} Collection{( characterName != null ? $" for {characterName}." : "." )}" );
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ public partial class ConfigWindow
|
||||||
.RegisterEntry( "Updated some tooltips and hints." )
|
.RegisterEntry( "Updated some tooltips and hints." )
|
||||||
.RegisterEntry( "Improved handling of IMC exception problems." )
|
.RegisterEntry( "Improved handling of IMC exception problems." )
|
||||||
.RegisterEntry( "Fixed a bug with misidentification of equipment decals." )
|
.RegisterEntry( "Fixed a bug with misidentification of equipment decals." )
|
||||||
|
.RegisterEntry( "Character collections can now be set via chat command, too. (/penumbra collection character <collection name> | <character name>)" )
|
||||||
.RegisterEntry( "Backend changes regarding API/IPC, consumers can but do not need to use the Penumbra.Api library as a submodule." )
|
.RegisterEntry( "Backend changes regarding API/IPC, consumers can but do not need to use the Penumbra.Api library as a submodule." )
|
||||||
.RegisterEntry( "Added API to delete mods and read and set their pseudo-filesystem paths.", 1 )
|
.RegisterEntry( "Added API to delete mods and read and set their pseudo-filesystem paths.", 1 )
|
||||||
.RegisterEntry( "Added API to check Penumbras enabled state and updates to it.", 1 );
|
.RegisterEntry( "Added API to check Penumbras enabled state and updates to it.", 1 );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue