diff --git a/.vscode/settings.json b/.vscode/settings.json index 98061ba..e9eb685 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -22,6 +22,8 @@ "csharp.inlayHints.enableInlayHintsForImplicitVariableTypes": true, "csharp.inlayHints.enableInlayHintsForLambdaParameterTypes": true, "csharp.inlayHints.enableInlayHintsForImplicitObjectCreation": true, + "csharp.suppressDotnetInstallWarning": true, + "csharp.suppressDotnetRestoreNotification": true, "dotnet.server.useOmnisharp": true, "omnisharp.enableLspDriver": false } \ No newline at end of file diff --git a/1.4/Assemblies/Template.dll b/1.4/Assemblies/Template.dll index 0885e68..a956d79 100644 Binary files a/1.4/Assemblies/Template.dll and b/1.4/Assemblies/Template.dll differ diff --git a/Source/Startup.cs b/Source/Startup.cs index a124d49..6173f34 100644 --- a/Source/Startup.cs +++ b/Source/Startup.cs @@ -1,6 +1,4 @@ -#nullable enable - -using Verse; +using Verse; // using HarmonyLib; diff --git a/Source/TemplateMapComponent.cs b/Source/TemplateMapComponent.cs index cd0e0a3..f559e08 100644 --- a/Source/TemplateMapComponent.cs +++ b/Source/TemplateMapComponent.cs @@ -1,5 +1,3 @@ -#nullable enable - using RimWorld; using Verse; @@ -7,11 +5,8 @@ using Verse; namespace Template; -public class TemplateMapComponent : MapComponent +public class TemplateMapComponent(Map map) : MapComponent(map) { - public TemplateMapComponent(Map map) - : base(map) { } - public override void FinalizeInit() { Messages.Message("Success", null, MessageTypeDefOf.PositiveEvent); diff --git a/flake.nix b/flake.nix index 7e64865..b5304c8 100644 --- a/flake.nix +++ b/flake.nix @@ -15,9 +15,9 @@ # Rust dev environment devShells.default = pkgs.mkShell { inputsFrom = [ config.treefmt.build.devShell ]; - nativeBuildInputs = with pkgs; [ dotnet-sdk mono libxslt ]; + nativeBuildInputs = with pkgs; [ dotnet-sdk_8 libxslt ]; shellHook = '' - DOTNET_ROOT="${pkgs.dotnet-sdk}"; + DOTNET_ROOT="${pkgs.dotnet-sdk_8}"; ''; };