mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
Add Only after PluginSide
This commit is contained in:
3 files changed
+5
-5
No files matched your search
@@ -12,7 +12,7 @@ namespace Reactor.Debugger
|
||||
[BepInPlugin(Id)]
|
||||
[BepInProcess("Among Us.exe")]
|
||||
[BepInDependency(ReactorPlugin.Id, "^0.2.0")]
|
||||
[ReactorPluginSide(PluginSide.Client)]
|
||||
[ReactorPluginSide(PluginSide.ClientOnly)]
|
||||
public class DebuggerPlugin : BasePlugin
|
||||
{
|
||||
public const string Id = "gg.reactor.debugger";
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Reactor
|
||||
{
|
||||
[BepInPlugin(Id)]
|
||||
[BepInProcess("Among Us.exe")]
|
||||
[ReactorPluginSide(PluginSide.Client)]
|
||||
[ReactorPluginSide(PluginSide.ClientOnly)]
|
||||
public class ReactorPlugin : BasePlugin
|
||||
{
|
||||
public const string Id = "gg.reactor.api";
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Reactor
|
||||
|
||||
public ReactorPluginSideAttribute(PluginSide side)
|
||||
{
|
||||
if (side == PluginSide.Server)
|
||||
if (side == PluginSide.ServerOnly)
|
||||
{
|
||||
throw new ArgumentException("BepInEx plugin can't be server only!");
|
||||
}
|
||||
@@ -34,11 +34,11 @@ namespace Reactor
|
||||
/// <summary>
|
||||
/// Required only by client
|
||||
/// </summary>
|
||||
Client,
|
||||
ClientOnly,
|
||||
|
||||
/// <summary>
|
||||
/// Required only by server
|
||||
/// </summary>
|
||||
Server
|
||||
ServerOnly
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user