Merge pull request #2572 from Patrikkk/1.4.3.4
Update for Terraria 1.4.3.4
This commit is contained in:
commit
5b9eef92eb
4 changed files with 5 additions and 4 deletions
|
|
@ -12,10 +12,10 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
|
|||
* Do not forget to sign every line you change with your name. (@hakusaro)
|
||||
* If there is no section called "Upcoming changes" below this line, please add one with `## Upcoming changes` as the first line, and then a bulleted item directly after with the first change.
|
||||
|
||||
|
||||
## Upcoming changes
|
||||
* Improved the `/grow` command to reduce code duplication, use `TileID` constants for less ambiguous types. (@drunderscore)
|
||||
* Fixed item dupe via /logout & NPC. (@Terrarxxn)
|
||||
* Added preliminary support for Terraria 1.4.3.4 (@SignatureBeef, @Patrikkk, @hakusaro)
|
||||
|
||||
## TShock 4.5.13
|
||||
* Added hook `GetDataHandlers.OnReleaseNpc` to handling ReleaseNPC packet and a bouncer to stops unregistered and logged out players on SSC servers from releasing critters NPC. The bouncer has additional filter to stops players who tried to release different critter using crafted packet, e.g. using bunny item to release golden bunny. (@tru321)
|
||||
|
|
|
|||
|
|
@ -1379,7 +1379,7 @@ namespace TShockAPI
|
|||
/// <param name="prefix">The item prefix.</param>
|
||||
public virtual void GiveItem(int type, int stack, int prefix = 0)
|
||||
{
|
||||
int itemIndex = Item.NewItem((int)X, (int)Y, TPlayer.width, TPlayer.height, type, stack, true, prefix, true);
|
||||
int itemIndex = Item.NewItem(new EntitySource_DebugCommand(), (int)X, (int)Y, TPlayer.width, TPlayer.height, type, stack, true, prefix, true);
|
||||
SendData(PacketTypes.ItemDrop, "", itemIndex);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ using TShockAPI;
|
|||
using TShockAPI.DB;
|
||||
using Terraria.Localization;
|
||||
using System.Linq;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
namespace TShockAPI
|
||||
{
|
||||
|
|
@ -166,7 +167,7 @@ namespace TShockAPI
|
|||
int spawnTileY;
|
||||
TShock.Utils.GetRandomClearTileWithInRange(startTileX, startTileY, tileXRange, tileYRange, out spawnTileX,
|
||||
out spawnTileY);
|
||||
NPC.NewNPC(spawnTileX * 16, spawnTileY * 16, type);
|
||||
NPC.NewNPC(new EntitySource_DebugCommand(), spawnTileX * 16, spawnTileY * 16, type);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 5314669394193a8a9a6a40036e00bcf8838254af
|
||||
Subproject commit 91e94388f15bd9b40786e052ef1a06173830b09d
|
||||
Loading…
Add table
Add a link
Reference in a new issue