fix Tests Reference; restore IgnoreSSCPackets = false in PlayerData
This commit is contained in:
parent
1d2bfbe62f
commit
7702d3b00b
2 changed files with 12 additions and 3 deletions
|
|
@ -614,13 +614,16 @@ namespace TShockAPI
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 别删了,ItemOwner那边应该是依赖于原版的一个行为会发包恢复,现在好像没了,先用这个
|
||||||
|
player.IgnoreSSCPackets = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void TrySendingItemArray(int plr, Item[] array, int slotStartIndex,int remoteClient = -1, int ignoreClient = -1)
|
private static void TrySendingItemArray(int plr, Item[] array, int slotStartIndex,int remoteClient = -1, int ignoreClient = -1)
|
||||||
{
|
{
|
||||||
|
|
||||||
for (int index = 0; index < array.Length; ++index)
|
for (int index = 0; index < array.Length; ++index)
|
||||||
NetMessage.TrySendData(5, number: plr, number2: (float) (slotStartIndex + index),remoteClient: remoteClient, ignoreClient: ignoreClient);
|
{
|
||||||
|
NetMessage.TrySendData(5, number: plr, number2: slotStartIndex + index, remoteClient: remoteClient, ignoreClient: ignoreClient);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,12 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Reference Include="OTAPI">
|
||||||
|
<HintPath>..\lib\OTAPI.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="OTAPI.Runtime">
|
||||||
|
<HintPath>..\lib\OTAPI.Runtime.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<ProjectReference Include="..\TShockAPI\TShockAPI.csproj" />
|
<ProjectReference Include="..\TShockAPI\TShockAPI.csproj" />
|
||||||
<ProjectReference Include="..\TShockLauncher\TShockLauncher.csproj" />
|
<ProjectReference Include="..\TShockLauncher\TShockLauncher.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue