diff --git a/.github/config.yml b/.github/config.yml
index c39fdab9..34b33fce 100644
--- a/.github/config.yml
+++ b/.github/config.yml
@@ -1,5 +1,5 @@
updateDocsComment: >
- Thanks for the pull request! TShock's maintainers would like you to go ahead and give yourself credit by updating the `CHANGELOG.md` file before this gets merged. This helps us document changes to TShock, as well as give you credit for your work. You deserve it! :sparkles:
+ Thanks for the pull request! TShock's maintainers would like you to go ahead and give yourself credit by updating the `CHANGELOG.md` as soon as you can. Your pull request will likely not be accepted without this. This both helps us document changes to TShock, as well as give you credit for your work. You deserve it, so go take credit! :sparkles:
updateDocsWhiteList:
- bug
@@ -7,4 +7,4 @@ updateDocsWhiteList:
updateDocsTargetFiles:
- README
- - CHANGELOG.md
\ No newline at end of file
+ - CHANGELOG.md
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2327f753..aade87c2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,7 @@
This is the rolling changelog for TShock for Terraria. Use past tense when adding new entries; sign your name off when you add or change something. This should primarily be things like user changes, not necessarily codebase changes unless it's really relevant or large.
## Upcoming Changes
+* API: Added return in OnNameCollision if hook has been handled. (@Patrikkk)
* API: Added hooks for item, projectile and tile bans (@deadsurgeon42)
* API: Changed `PlayerHooks` permission hook mechanisms to allow negation from hooks (@deadsurgeon42)
* API: New WorldGrassSpread hook which shold allow corruption/crimson/hallow creep config options to work (@DeathCradle)
@@ -26,6 +27,33 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
* Update OTAPI to 2.0.0.31, which also updates Newtonsoft.Json to 10.0.3 (@Ryozuki)
* Fixed DumpItems() from trying to dump older versions of certain items (negative item IDs). (@Zaicon)
* Added the `/dump-reference-data` command, which when run, runs Utils.Dump() and outputs Terraria reference data to the server folder. (@hakusaro)
+* Fixed builds to not require a specific version of OTAPI and to not fail when in Release mode (@bartico6)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Bouncer changes
+
+Putting this stuff down here so things don't conflict as often.
+
* `GetDataHandlers.SendTileSquare` hook now sends a `TSPlayer` and a `MemoryStream` of raw data. (@hakusaro)
* Added `GetDataHandlers.HealOtherPlayer` hook. (@hakusaro)
* Added `GetDataHandlers.PlaceObject` hook. (@hakusaro)
diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs
index a4245e09..a9ad20b2 100644
--- a/TShockAPI/TShock.cs
+++ b/TShockAPI/TShock.cs
@@ -524,6 +524,11 @@ namespace TShockAPI
/// args - The NameCollisionEventArgs object.
private void NetHooks_NameCollision(NameCollisionEventArgs args)
{
+ if (args.Handled)
+ {
+ return;
+ }
+
string ip = Utils.GetRealIP(Netplay.Clients[args.Who].Socket.GetRemoteAddress().ToString());
var player = Players.First(p => p != null && p.Name == args.Name && p.Index != args.Who);
diff --git a/TShockAPI/TShockAPI.csproj b/TShockAPI/TShockAPI.csproj
index cf21c8b9..b7bf6f8e 100644
--- a/TShockAPI/TShockAPI.csproj
+++ b/TShockAPI/TShockAPI.csproj
@@ -71,11 +71,9 @@
..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll
-
+
False
- ..\TerrariaServerAPI\TerrariaServerAPI\bin\Debug\OTAPI.dll
- ..\TerrariaServerAPI\TerrariaServerAPI\bin\Release\OTAPI.dll
- ..\TerrariaServerAPI\TerrariaServerAPI\bin\$(Configuration)\OTAPI.dll
+ ..\TerrariaServerAPI\TerrariaServerAPI\bin\$(ConfigurationName)\OTAPI.dll