Adjustor mod plugin for VS
修订版 | 37a8abefb7fc1508d42a5e9ed959adde0625dbe4 (tree) |
---|---|
时间 | 2019-07-30 11:48:38 |
作者 | melchior <melchior@user...> |
Commiter | melchior |
minor changes for V1.10 support,
changed debug message
@@ -14,6 +14,7 @@ using Vintagestory.API.Server; | ||
14 | 14 | using Vintagestory.API.Client; |
15 | 15 | |
16 | 16 | using Cairo; |
17 | +using System.Text; | |
17 | 18 | |
18 | 19 | //using Vintagestory.ServerMods; |
19 | 20 |
@@ -216,11 +217,11 @@ namespace Adjustor | ||
216 | 217 | /// <param name="dsc">Dsc.</param> |
217 | 218 | /// <param name="world">World.</param> |
218 | 219 | /// <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) | |
220 | 221 | { |
221 | - base.GetHeldItemInfo(stack, dsc, world, withDebugInfo); | |
222 | + base.GetHeldItemInfo(inSlot, dsc, world, withDebugInfo); | |
222 | 223 | //Toolmode |
223 | - dsc.AppendFormat("Rotation Mode: {0}\n",this.CurrentRotationMode(stack)); | |
224 | + dsc.AppendFormat("Rotation Mode: {0}\n",this.CurrentRotationMode(inSlot.Itemstack)); | |
224 | 225 | } |
225 | 226 | |
226 | 227 | #region Tool Modes |
@@ -657,7 +658,7 @@ namespace Adjustor | ||
657 | 658 | renamedLocationPath = thatBlock.Code.Path.Replace(roatableValue, rotationMode.ToString().ToLowerInvariant() ); |
658 | 659 | |
659 | 660 | #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); | |
661 | 662 | #endif |
662 | 663 | |
663 | 664 | } |
@@ -676,7 +677,7 @@ namespace Adjustor | ||
676 | 677 | renamedLocationPath = thatBlock.Code.Path.Replace(roatableValue, rotationMode.ToString( ).ToLowerInvariant( )); |
677 | 678 | |
678 | 679 | #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); | |
680 | 681 | #endif |
681 | 682 | |
682 | 683 | } |
@@ -3,9 +3,9 @@ | ||
3 | 3 | "name": "Adjustment Tool", |
4 | 4 | "description" : "Alter, Rotate blocks without breaking them. Now with Economy tool!", |
5 | 5 | "authors": ["Melchior", ], |
6 | - "version": "0.1.8", | |
6 | + "version": "0.1.9", | |
7 | 7 | "dependencies": { |
8 | - "game": "1.9.6", | |
8 | + "game": "1.10.*", | |
9 | 9 | "survival": "" |
10 | 10 | }, |
11 | 11 | "website": "http://nowebsite.nope" |