File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,13 @@ public static class VTubeStudioModelLoaderExtensions
15
15
16
16
static VTubeStudioModelLoaderExtensions ( )
17
17
{
18
+ const BindingFlags bindingFlags = BindingFlags . Instance | BindingFlags . Static |
19
+ BindingFlags . NonPublic | BindingFlags . Public ;
18
20
s_vtsModelFieldInfo = typeof ( VTubeStudioModelLoader )
19
- . GetField ( "vtsModel" , BindingFlags . Instance | BindingFlags . NonPublic ) ;
21
+ . GetField ( "vtsModel" , bindingFlags ) ;
20
22
21
23
s_allowLoadingNextModelFieldInfo = typeof ( VTubeStudioModelLoader )
22
- . GetField ( "allowLoadingNextModel" , BindingFlags . Instance | BindingFlags . NonPublic ) ;
24
+ . GetField ( "allowLoadingNextModel" , bindingFlags ) ;
23
25
24
26
if ( s_vtsModelFieldInfo == null )
25
27
Log . Error ( $ "Unable to find field 'vtsModel' on { nameof ( VTubeStudioModelLoader ) } ") ;
Original file line number Diff line number Diff line change 3
3
<PropertyGroup >
4
4
<TargetFramework >netstandard2.0</TargetFramework >
5
5
6
- <Version >0.3.1 </Version >
7
- <AssemblyVersion >0.3.1 </AssemblyVersion >
6
+ <Version >0.3.2 </Version >
7
+ <AssemblyVersion >0.3.2 </AssemblyVersion >
8
8
9
9
<VTubeStudioPath ></VTubeStudioPath >
10
10
</PropertyGroup >
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ namespace Trashy
14
14
[ BepInPlugin ( "TrashyPlugin" , "Throw trash at the VTuber" , Version ) ]
15
15
public class TrashyPlugin : BaseUnityPlugin
16
16
{
17
- public const string Version = "0.3.1 " ;
17
+ public const string Version = "0.3.2 " ;
18
18
19
19
public static AssetBundle Bundle ;
20
20
public static VTubeStudioModelLoader ModelLoader ;
You can’t perform that action at this time.
0 commit comments