Changes

→‎Event changes: fix link, tweak
Line 189: Line 189:  
{{/event
 
{{/event
 
  |old events = MineEvents.MineLevelChanged
 
  |old events = MineEvents.MineLevelChanged
  |new events = PlayerEvents.Warped
+
  |new events = Player.Warped
  |summary    = To know whether the player changed mine level, you can check <code>if (e.NewLocation is MineShaft mine)</code>; the new mine level will be <code>mine.mineLevel</code>. Although the new event is still only called for the current player, that may change in a future version; '''make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player'''.
+
  |summary    = Check <code>if (e.NewLocation is MineShaft mine)</code> to detect a mine level change (the new mine level will be <code>mine.mineLevel</code>). Although the new event is still only called for the current player, that may change in a future version; '''make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player'''.
 
}}
 
}}
 
{{/event
 
{{/event
translators
8,404

edits