• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

First Machine Age's Mods (Combined repo.)


Commit MetaInfo

Revisão0f48e97c3a9596a5670396bdfdbccaa1a0e58961 (tree)
Hora2022-01-11 07:14:40
Autormelchior <melchior@user...>
Commitermelchior

Mensagem de Log

AMR: VS 1.16 Updates

fixed AMRs Recipe API use, minor VS1.16 changes

Mudança Sumário

Diff

--- a/AnvilMetalRecovery/AnvilMetalRecovery.csproj
+++ b/AnvilMetalRecovery/AnvilMetalRecovery.csproj
@@ -7,7 +7,7 @@
77 <OutputType>Library</OutputType>
88 <RootNamespace>AnvilMetalRecovery</RootNamespace>
99 <AssemblyName>AnvilMetalRecovery</AssemblyName>
10- <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
10+ <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
1111 </PropertyGroup>
1212 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1313 <DebugSymbols>true</DebugSymbols>
--- a/AnvilMetalRecovery/MetalRecoverySystem.cs
+++ b/AnvilMetalRecovery/MetalRecoverySystem.cs
@@ -7,6 +7,7 @@ using Vintagestory.API.Client;
77 using Vintagestory.API.Common;
88 using Vintagestory.API.Server;
99 using Vintagestory.Client.NoObf;
10+using Vintagestory.GameContent;
1011 using Vintagestory.Server;
1112
1213 namespace AnvilMetalRecovery
@@ -42,12 +43,18 @@ namespace AnvilMetalRecovery
4243 }
4344 }
4445
46+ internal List<SmithingRecipe> SmithingRecipies
47+ {
48+ get { return CoreAPI.ModLoader.GetModSystem<RecipeRegistrySystem>( ).SmithingRecipes; }
49+ }
4550
46- /// <summary>
47- /// Valid Items that are 'recoverable' (Asset Codes) only
48- /// </summary>
49- /// <value>The item filter list.</value>
50- public List<AssetLocation> ItemFilterList {
51+
52+
53+ /// <summary>
54+ /// Valid Items that are 'recoverable' (Asset Codes) only
55+ /// </summary>
56+ /// <value>The item filter list.</value>
57+ public List<AssetLocation> ItemFilterList {
5158 get
5259 {
5360 return itemToVoxelLookup.Keys.ToList( );
--- a/AnvilMetalRecovery/MetalRecoverySystem_Components.cs
+++ b/AnvilMetalRecovery/MetalRecoverySystem_Components.cs
@@ -1,17 +1,16 @@
11 using System;
2-using System.Collections.Generic;
32 using System.Linq;
4-using System.Linq.Expressions;
53
6-using Vintagestory.API.Client;
4+
75 using Vintagestory.API.Common;
86 using Vintagestory.API.Config;
97 using Vintagestory.API.Datastructures;
108 using Vintagestory.API.Server;
11-using Vintagestory.Client.NoObf;
9+
1210 using Vintagestory.Common;
11+using Vintagestory.GameContent;
1312 using Vintagestory.Server;
14-using Vintagestory.ServerMods;
13+
1514
1615 namespace AnvilMetalRecovery
1716 {
@@ -20,7 +19,7 @@ namespace AnvilMetalRecovery
2019 private void MaterialDataGathering( )
2120 {
2221 //Count out Voxels in smthing recipes for all metal-ingot(?) derived items;
23- var examineList = ServerAPI.World.SmithingRecipes.Where(sr => sr.Enabled && sr.Ingredient.Type == EnumItemClass.Item && sr.Output.Type == EnumItemClass.Item);
22+ var examineList = this.SmithingRecipies.Where(sr => sr.Enabled && sr.Ingredient.Type == EnumItemClass.Item && sr.Output.Type == EnumItemClass.Item);
2423
2524 foreach (var recipie in examineList) {
2625
--- a/AnvilMetalRecovery/modinfo.json
+++ b/AnvilMetalRecovery/modinfo.json
@@ -6,7 +6,7 @@
66 "ModID":"metalrecovery",
77 "version": "0.1.16",
88 "dependencies": {
9- "game": "1.15.3",
9+ "game": "1.16.0",
1010 "survival": ""
1111 },
1212 "website": "http://nowebsite.nope"