dont destroy self

This commit is contained in:
NotAKidoS 2023-01-27 09:09:06 -06:00
parent 15e26de9c6
commit 27a05545ed
3 changed files with 5 additions and 7 deletions

View file

@ -79,14 +79,12 @@ public class AASBufferHelper : MonoBehaviour
{ {
isAcceptingAAS = true; isAcceptingAAS = true;
puppetMaster?.ApplyAdvancedAvatarSettings(aasBufferFloat, aasBufferInt, aasBufferByte); puppetMaster?.ApplyAdvancedAvatarSettings(aasBufferFloat, aasBufferInt, aasBufferByte);
Destroy(this);
} }
public void ApplyExternalAAS(float[] settingsFloat, int[] settingsInt, byte[] settingsByte) public void ApplyExternalAAS(float[] settingsFloat, int[] settingsInt, byte[] settingsByte)
{ {
isAcceptingAAS = true; isAcceptingAAS = true;
puppetMaster?.ApplyAdvancedAvatarSettings(settingsFloat, settingsInt, settingsByte); puppetMaster?.ApplyAdvancedAvatarSettings(settingsFloat, settingsInt, settingsByte);
Destroy(this);
} }
public void StoreExternalAASBuffer(float[] settingsFloat, int[] settingsInt, byte[] settingsByte) public void StoreExternalAASBuffer(float[] settingsFloat, int[] settingsInt, byte[] settingsByte)

View file

@ -25,6 +25,6 @@ using System.Reflection;
namespace AASBufferFix.Properties; namespace AASBufferFix.Properties;
internal static class AssemblyInfoParams internal static class AssemblyInfoParams
{ {
public const string Version = "1.0.1"; public const string Version = "1.0.3";
public const string Author = "NotAKidoS"; public const string Author = "NotAKidoS";
} }

View file

@ -1,7 +1,7 @@
{ {
"_id": -1, "_id": 126,
"name": "AASBufferFix", "name": "AASBufferFix",
"modversion": "1.0.1", "modversion": "1.0.3",
"gameversion": "2022r170", "gameversion": "2022r170",
"loaderversion": "0.5.7", "loaderversion": "0.5.7",
"modtype": "Mod", "modtype": "Mod",
@ -16,8 +16,8 @@
"requirements": [ "requirements": [
"None" "None"
], ],
"downloadlink": "https://github.com/NotAKidOnSteam/AASBufferFix/releases/download/v1.0.1/AASBufferFix.dll", "downloadlink": "https://github.com/NotAKidOnSteam/AASBufferFix/releases/download/v1.0.3/AASBufferFix.dll",
"sourcelink": "https://github.com/NotAKidOnSteam/AASBufferFix/", "sourcelink": "https://github.com/NotAKidOnSteam/AASBufferFix/",
"changelog": "- Initial Release", "changelog": "- Initial Release\n- Fixed extremely rare condition where AAS would be applied before ready.\n- Don't destroy helper on first load...'",
"embedcolor": "9b59b6" "embedcolor": "9b59b6"
} }