Line 171: |
Line 171: |
| |old events = PlayerEvents.InventoryChanged | | |old events = PlayerEvents.InventoryChanged |
| |new events = Player.InventoryChanged | | |new events = Player.InventoryChanged |
− | |summary = Mostly equivalent. The event arguments changed type, but should be straightforward to migrate. Although the new event is still only called for the current player, that will likely change in a future version; make sure to check <tt>e.Player</tt>, <tt>e.Player.IsLocalPlayer</tt>, or <tt>e.Player.IsMainPlayer</tt> if needed. | + | |summary = Mostly equivalent. The event arguments changed type, but should be straightforward to migrate. Although the new event is still only called for the current player, that will likely change in a future version; '''make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player'''. |
| }} | | }} |
| {{/event | | {{/event |
| |old events = PlayerEvents.LeveledUp | | |old events = PlayerEvents.LeveledUp |
| |new events = Player.LevelChanged | | |new events = Player.LevelChanged |
− | |summary = Mostly equivalent. The event arguments changed type, but should be straightforward to migrate. Although the new event is still only called for the current player, that will likely change in a future version; make sure to check <tt>e.Player</tt>, <tt>e.Player.IsLocalPlayer</tt>, or <tt>e.Player.IsMainPlayer</tt> if needed. | + | |summary = Mostly equivalent. The event arguments changed type, but should be straightforward to migrate. Although the new event is still only called for the current player, that will likely change in a future version; '''make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player'''. |
| }} | | }} |
| {{/event | | {{/event |
| |old events = PlayerEvents.Warped | | |old events = PlayerEvents.Warped |
| |new events = Player.Warped | | |new events = Player.Warped |
− | |summary = Mostly equivalent. The event arguments changed type, but should be straightforward to migrate. Although the new event is still only called for the current player, that will likely change in a future version; make sure to check <tt>e.Player</tt>, <tt>e.Player.IsLocalPlayer</tt>, or <tt>e.Player.IsMainPlayer</tt> if needed. | + | |summary = Mostly equivalent. The event arguments changed type, but should be straightforward to migrate. Although the new event is still only called for the current player, that will likely change in a future version; '''make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player'''. |
| }} | | }} |
| {{/event | | {{/event |