Adding DisplayDollItemSync event.
An event that is called when a player modifies the slot of a DisplayDoll (Mannequin). I was trying to think from a developer friendly perspective here. Instead of passing seperate variables for type/stack/prefix, thought I pass an Item object. As well as, instead of having devs who work with this hook figure out and implement how to get the Item of the DisplayDoll, I just provide it in the hook. I can imagine this being used for creative purposes in plugins.
This commit is contained in:
parent
1807488f2f
commit
69f232b12a
2 changed files with 99 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
|
|||
* Cleaned up a check in Bouner OnTileEdit where it checks for using the respective item when placing a tile to make it clearer. This change also fixed the issue in a previous commit where valid replace action was caught. Moved the check for max tile/wall types to the beginning of the method. (@Patrikkk)
|
||||
* Improved clarity for insufficient permission related error messages. (@moisterrific)
|
||||
* Remove redundant Boulder placement check that prevented placing chests on them, as it is no longer possible to place a chest on a boulder, so nothing crashes the server. "1.2.3: Boulders with Chests on them no longer crash the game if the boulder is hit." (@kevzhao2, @Patrikkk)
|
||||
* Adding DisplayDollItemSync event. An event that is called when a player modifies the slot of a DisplayDoll (Mannequin). This event provides information about the current item in the displaydoll, as well as the item that the player is about to set. (@Patrikkk)
|
||||
|
||||
## TShock 4.4.0 (Pre-release 11)
|
||||
* New permission `tshock.tp.pylon` to enable teleporting via Teleportation Pylons (@QuiCM)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue