• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签

Frequently used words (click to add to your profile)

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

Adjustor mod plugin for VS


Commit MetaInfo

修订版37a8abefb7fc1508d42a5e9ed959adde0625dbe4 (tree)
时间2019-07-30 11:48:38
作者melchior <melchior@user...>
Commitermelchior

Log Message

minor changes for V1.10 support,
changed debug message

更改概述

差异

--- a/AdjustorMod/ItemAdjustor.cs
+++ b/AdjustorMod/ItemAdjustor.cs
@@ -14,6 +14,7 @@ using Vintagestory.API.Server;
1414 using Vintagestory.API.Client;
1515
1616 using Cairo;
17+using System.Text;
1718
1819 //using Vintagestory.ServerMods;
1920
@@ -216,11 +217,11 @@ namespace Adjustor
216217 /// <param name="dsc">Dsc.</param>
217218 /// <param name="world">World.</param>
218219 /// <param name="withDebugInfo">With debug info.</param>
219- public override void GetHeldItemInfo(ItemStack stack, System.Text.StringBuilder dsc, IWorldAccessor world, bool withDebugInfo)
220+ public override void GetHeldItemInfo(ItemSlot inSlot, StringBuilder dsc, IWorldAccessor world, bool withDebugInfo)
220221 {
221- base.GetHeldItemInfo(stack, dsc, world, withDebugInfo);
222+ base.GetHeldItemInfo(inSlot, dsc, world, withDebugInfo);
222223 //Toolmode
223- dsc.AppendFormat("Rotation Mode: {0}\n",this.CurrentRotationMode(stack));
224+ dsc.AppendFormat("Rotation Mode: {0}\n",this.CurrentRotationMode(inSlot.Itemstack));
224225 }
225226
226227 #region Tool Modes
@@ -657,7 +658,7 @@ namespace Adjustor
657658 renamedLocationPath = thatBlock.Code.Path.Replace(roatableValue, rotationMode.ToString().ToLowerInvariant() );
658659
659660 #if DEBUG
660- Logger.VerboseDebug("Variant vertical rotation {0}={1} to: {2}", rotationKey, roatableValue, renamedLocationPath);
661+ Logger.VerboseDebug("Variant vertical rotation {0}={1} to: {2} byKey[{3}]", rotationKey, roatableValue, renamedLocationPath, rotationKey);
661662 #endif
662663
663664 }
@@ -676,7 +677,7 @@ namespace Adjustor
676677 renamedLocationPath = thatBlock.Code.Path.Replace(roatableValue, rotationMode.ToString( ).ToLowerInvariant( ));
677678
678679 #if DEBUG
679- Logger.VerboseDebug("Variant horizontal rotation {0}={1} to: {2}", rotationKey, roatableValue, renamedLocationPath);
680+ Logger.VerboseDebug("Variant horizontal rotation {0}={1} to: {2} byKey[{3}]", rotationKey, roatableValue, renamedLocationPath, rotationKey);
680681 #endif
681682
682683 }
--- a/AdjustorMod/modinfo.json
+++ b/AdjustorMod/modinfo.json
@@ -3,9 +3,9 @@
33 "name": "Adjustment Tool",
44 "description" : "Alter, Rotate blocks without breaking them. Now with Economy tool!",
55 "authors": ["Melchior", ],
6- "version": "0.1.8",
6+ "version": "0.1.9",
77 "dependencies": {
8- "game": "1.9.6",
8+ "game": "1.10.*",
99 "survival": ""
1010 },
1111 "website": "http://nowebsite.nope"