Skip to content

Commit

Permalink
Update to OTAPI 2.0.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
SignatureBeef committed Dec 10, 2016
1 parent 8ebaeee commit 5144bad
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<Private>True</Private>
</Reference>
<Reference Include="OTAPI, Version=1.3.4.4, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OTAPI.2.0.0.10\lib\net451\OTAPI.dll</HintPath>
<HintPath>..\packages\OTAPI.2.0.0.12\lib\net451\OTAPI.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="OTAPI.Patcher.Engine">
Expand Down
2 changes: 1 addition & 1 deletion TShock.Modifications.Bootstrapper/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
<package id="NDesk.Options" version="0.2.1" targetFramework="net452" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net452" />
<package id="NuGet.Core" version="2.12.0" targetFramework="net452" />
<package id="OTAPI" version="2.0.0.10" targetFramework="net452" />
<package id="OTAPI" version="2.0.0.12" targetFramework="net452" />
</packages>
2 changes: 1 addition & 1 deletion TShock.Modifications.SSC/TShock.Modifications.SSC.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<Private>True</Private>
</Reference>
<Reference Include="OTAPI, Version=1.3.4.4, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\OTAPI.2.0.0.10\lib\net451\OTAPI.dll</HintPath>
<HintPath>..\packages\OTAPI.2.0.0.12\lib\net451\OTAPI.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="OTAPI.Patcher.Engine">
Expand Down
2 changes: 1 addition & 1 deletion TShock.Modifications.SSC/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<packages>
<package id="Mono.Cecil" version="0.9.6.4" targetFramework="net452" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net452" />
<package id="OTAPI" version="2.0.0.10" targetFramework="net452" />
<package id="OTAPI" version="2.0.0.12" targetFramework="net452" />
</packages>
7 changes: 3 additions & 4 deletions TerrariaServerAPI/TerrariaApi.Server/HookManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ public void AttachHooks(string[] args)
return HookResult.Continue;
};
Hooks.Net.ReceiveData = (MessageBuffer buffer, ref byte packetId, ref int readOffset, ref int start, ref int length,
ref int messageType) =>
Hooks.Net.ReceiveData = (MessageBuffer buffer, ref byte packetId, ref int readOffset, ref int start, ref int length) =>
{
try
{
Expand Down Expand Up @@ -225,7 +224,7 @@ public void AttachHooks(string[] args)
}
return HookResult.Continue;
};
Hooks.Npc.Strike = (NPC npc, ref int cancelResult, ref int damage, ref float knockBack,
Hooks.Npc.Strike = (NPC npc, ref double cancelResult, ref int damage, ref float knockBack,
ref int hitDirection, ref bool critical, ref bool noEffect, ref bool fromNet, Entity entity) =>
{
var player = entity as Player;
Expand Down Expand Up @@ -312,7 +311,7 @@ public void AttachHooks(string[] args)
return HookResult.Continue;
};
#endregion
Hooks.Collision.PressurePlate = (ref int x, ref int y, ref Entity entity) =>
Hooks.Collision.PressurePlate = (ref int x, ref int y, ref IEntity entity) =>
{
var npc = entity as NPC;
if (npc != null)
Expand Down
4 changes: 3 additions & 1 deletion prebuilt/OTAPI.Patcher.Engine.XML

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified prebuilt/OTAPI.Patcher.Engine.dll
Binary file not shown.
Binary file modified prebuilt/OTAPI.Patcher.Engine.pdb
Binary file not shown.

0 comments on commit 5144bad

Please sign in to comment.