• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
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

修订版d94d717f85648b564bc6b67e3b1e86c59fa3012d (tree)
时间2020-12-03 06:19:04
作者melchior <melchior@user...>
Commitermelchior

Log Message

V1.14 RC update

更改概述

差异

--- a/AnvilMetalRecovery/BlockEntities/MetalRecovery_BlockEntityAnvil.cs
+++ b/AnvilMetalRecovery/BlockEntities/MetalRecovery_BlockEntityAnvil.cs
@@ -45,7 +45,7 @@ namespace AnvilMetalRecovery
4545
4646 if (this.IsShavable && Voxels[voxelPos.X, voxelPos.Y, voxelPos.Z] == ( byte )EnumVoxelMaterial.Metal) {
4747 #if DEBUG
48- Logger.VerboseDebug("Split some {0} @{1}, Total:{2}", this.BaseMaterial.Collectible.LastCodePart( ), voxelPos, SplitCount);
48+ Logger.VerboseDebug("Split some {0} @{1}, Total:{2}", this.BaseMetal, voxelPos, SplitCount);
4949 #endif
5050 SplitCount++;
5151 }
@@ -57,7 +57,7 @@ namespace AnvilMetalRecovery
5757 public override void CheckIfFinished(IPlayer byPlayer)
5858 {
5959 int splitTemp = SplitCount;
60- string baseMaterial = this.BaseMaterial?.Collectible.LastCodePart( );
60+ string baseMaterial = this.BaseMetal;
6161 base.CheckIfFinished(byPlayer);
6262 // base.MatchesRecipe( ) -- Private; still in V1.14.... :\
6363 /*
@@ -99,7 +99,7 @@ namespace AnvilMetalRecovery
9999 base.GetBlockInfo(forPlayer, dsc);
100100
101101 if (this.IsShavable && this.SplitCount > 0 && this.BaseMaterial != null ) {
102- dsc.AppendFormat("[ {0} ÷ {1} ] | {2}",this.SplitCount, splitValue, this.BaseMaterial.GetName());
102+ dsc.AppendFormat("[ {0} ÷ {1} ] | {2}",this.SplitCount, splitValue, Lang.GetUnformatted($"item-workitem-{this.BaseMetal}"));
103103 }
104104
105105 }
@@ -129,5 +129,13 @@ namespace AnvilMetalRecovery
129129 return null;
130130 }
131131 }
132+
133+ protected string BaseMetal
134+ {
135+ get
136+ {
137+ return this?.BaseMaterial?.Collectible.LastCodePart( );
138+ }
139+ }
132140 }
133141 }
\ No newline at end of file