Browse Source

Use assembly name and version

master
NorbiPeti 4 years ago
parent
commit
bfedf5d2bb
Signed by: NorbiPeti <szatmari.norbert.peter@gmail.com> GPG Key ID: DBA4C4549A927E56
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      GCMC/GCMCPlugin.cs

+ 3
- 2
GCMC/GCMCPlugin.cs View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Threading.Tasks;
using GamecraftModdingAPI;
using GamecraftModdingAPI.Blocks;
@@ -15,8 +16,8 @@ namespace GCMC
{
public class GCMCPlugin : IPlugin
{
public string Name { get; } = "GCMC";
public string Version { get; } = "v0.0.1";
public string Name { get; } = Assembly.GetExecutingAssembly().GetName().Name;
public string Version { get; } = Assembly.GetExecutingAssembly().GetName().Version.ToString();

private readonly Dictionary<string, BlockType> mapping = new Dictionary<string, BlockType>(10);
private JsonSerializer _serializer = JsonSerializer.Create();


Loading…
Cancel
Save