mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-28 16:24:45 +02:00
Fixed exploit in NewMenuScreen
This commit is contained in:
parent
cb15dd9e1c
commit
5d4ae15b67
@ -201,7 +201,16 @@ Public MustInherit Class Item
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Sub UseItemhandler(ByVal params As Object())
|
Public Sub UseItemhandler(ByVal params As Object())
|
||||||
UseOnPokemon(CInt(params(0)))
|
If UseOnPokemon(CInt(params(0))) Then
|
||||||
|
Dim s As Screen = Core.CurrentScreen
|
||||||
|
While Not s.PreScreen Is Nothing And s.Identification <> Screen.Identifications.InventoryScreen
|
||||||
|
s = s.PreScreen
|
||||||
|
End While
|
||||||
|
|
||||||
|
If s.Identification = Screen.Identifications.InventoryScreen Then
|
||||||
|
CType(s, NewInventoryScreen).LoadItems()
|
||||||
|
End If
|
||||||
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
''' <summary>
|
''' <summary>
|
||||||
|
@ -991,7 +991,7 @@ Public Class NewInventoryScreen
|
|||||||
''' <summary>
|
''' <summary>
|
||||||
''' Reloads the temporary item list.
|
''' Reloads the temporary item list.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Private Sub LoadItems()
|
Public Sub LoadItems()
|
||||||
_items = Core.Player.Inventory.Where(Function(x) Item.GetItemByID(x.ItemID).ItemType = _visibleItemTypes(_tabIndex)).ToArray()
|
_items = Core.Player.Inventory.Where(Function(x) Item.GetItemByID(x.ItemID).ItemType = _visibleItemTypes(_tabIndex)).ToArray()
|
||||||
If _tabIndex = 4 Then 'TM/HM
|
If _tabIndex = 4 Then 'TM/HM
|
||||||
_items = (From i In _items Order By Item.GetItemByID(i.ItemID).SortValue Ascending).ToArray()
|
_items = (From i In _items Order By Item.GetItemByID(i.ItemID).SortValue Ascending).ToArray()
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user