• 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

修订版21d825ef5da932e25e51476c73f676f59628efa6 (tree)
时间2019-04-28 00:27:27
作者melchior <melchior@user...>
Commitermelchior

Log Message

Changes for V1.9.0

更改概述

差异

--- a/AdjustorMod/ItemAdjustor.cs
+++ b/AdjustorMod/ItemAdjustor.cs
@@ -73,7 +73,7 @@ namespace Adjustor
7373 Logger.VerboseDebug( "ItemAdjustor ~ OnLoaded" );
7474 }
7575
76- public override bool OnHeldInteractCancel(float secondsUsed, IItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel, EnumItemUseCancelReason cancelReason)
76+ public override bool OnHeldInteractCancel(float secondsUsed, ItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel, EnumItemUseCancelReason cancelReason)
7777 {
7878 return false;
7979 }
@@ -86,7 +86,7 @@ namespace Adjustor
8686 /// <param name="blockSel">Block sel.</param>
8787 /// <param name="entitySel">Entity sel.</param>
8888 /// <param name="handHandling">Hand handling.</param>
89- public override void OnHeldInteractStart(IItemSlot itemslot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel, ref EnumHandHandling handHandling)
89+ public override void OnHeldInteractStart(ItemSlot itemslot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel, ref EnumHandHandling handHandling)
9090 {
9191 if ( blockSel == null ) {
9292 return;
@@ -104,7 +104,7 @@ namespace Adjustor
104104 {
105105 #if DEBUG
106106 Logger.VerboseDebug( "[{0}] Looks Rotatable, FromFace: {1}", thatBlock.Code.Path, blockSel.Face.Code );
107- ClientApi.SendMessageToClient( string.Format( "Appears Rotatable: {0}", thatBlock.Code ) );
107+ ClientApi.ShowChatMessage( string.Format( "Appears Rotatable: {0}", thatBlock.Code ) );
108108 #endif
109109
110110 handHandling = EnumHandHandling.PreventDefault;
@@ -132,7 +132,7 @@ namespace Adjustor
132132 /// <param name="byEntity">By entity.</param>
133133 /// <param name="blockSel">Block sel.</param>
134134 /// <param name="entitySel">Entity sel.</param>
135- public override bool OnHeldInteractStep(float secondsUsed, IItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel)
135+ public override bool OnHeldInteractStep(float secondsUsed, ItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel)
136136 {
137137 if ( blockSel == null ) {
138138 return false;
@@ -154,7 +154,7 @@ namespace Adjustor
154154 return false;
155155 }
156156
157- EnumWorldAccessResponse why = ServerApi.World.TestAccessBlock( thePlayer, position, EnumBlockAccessFlags.BuildOrBreak );
157+ EnumWorldAccessResponse why = ServerApi.World.Claims.TestAccess( thePlayer, position, EnumBlockAccessFlags.BuildOrBreak );
158158 if ( why != EnumWorldAccessResponse.Granted) {
159159 ServerApi.SendMessage( thePlayer, GlobalConstants.CurrentChatGroup, string.Format("Not permitted, {0}", why.ToString()), EnumChatType.Notification );
160160 return false;