Skip to content

Commit

Permalink
fix primitive creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Axwabo committed May 19, 2024
1 parent 0907c61 commit 040085b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion slocLoader/API.Create.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ private static GameObject CreatePrimitive(GameObject parent, PrimitiveObject pri
toy.MaterialColor = primitive.MaterialColor;
ApplyAdminToyTransform(toy, sloc.HasColliderOnClient);
if (!sloc.HasColliderOnClient)
toy.NetworkPrimitiveFlags &= ~PrimitiveFlags.Collidable;
toy.PrimitiveFlags &= ~PrimitiveFlags.Collidable;
toy.SetPrimitive(0, toy.PrimitiveType);
return o;
}

Expand Down
2 changes: 1 addition & 1 deletion slocLoader/ExiledPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed class slocPlugin : Plugin<slocConfig>
public override string Prefix => "sloc";
public override string Author => "Axwabo";
public override PluginPriority Priority => PluginPriority.High;
public override Version Version { get; } = new(5, 2, 0);
public override Version Version { get; } = new(5, 2, 1);
public override Version RequiredExiledVersion { get; } = new(8, 4, 0);

private Harmony _harmony;
Expand Down
2 changes: 1 addition & 1 deletion slocLoader/NWPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed class slocPlugin
[PluginConfig]
public slocConfig Config = new();

[PluginEntryPoint("slocLoader", "5.2.0", "A plugin that loads sloc files.", "Axwabo")]
[PluginEntryPoint("slocLoader", "5.2.1", "A plugin that loads sloc files.", "Axwabo")]
public void OnEnabled()
{
Instance = this;
Expand Down
4 changes: 2 additions & 2 deletions slocLoader/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.2.0.0")]
[assembly: AssemblyFileVersion("5.2.0.0")]
[assembly: AssemblyVersion("5.2.1.0")]
[assembly: AssemblyFileVersion("5.2.1.0")]

0 comments on commit 040085b

Please # to comment.