From e6e53bc94bb93e9180a4a6567f745d64a25d0552 Mon Sep 17 00:00:00 2001 From: infinitefusion Date: Sat, 25 Nov 2023 10:35:04 -0500 Subject: [PATCH] don't crash when can't place pokemon in pc --- Data/MapInfos.rxdata | Bin 43665 -> 43665 bytes Data/Scripts/016_UI/017_UI_PokemonStorage.rb | 4 +++- Data/System.rxdata | Bin 28462 -> 28462 bytes 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Data/MapInfos.rxdata b/Data/MapInfos.rxdata index 6d90655ad2448b7340b0892b2e4b8612fb5cb71c..02868216ede2bf98ae22b72e2b7be181d6ad32a6 100644 GIT binary patch delta 24 gcmbPum1*KtrVZT!OyZ1_dj({eo-l1*E%0n60CQalR{#J2 delta 24 gcmbPum1*KtrVZT!Oq$G-dj({eLYX(O7I-!j0C129-2eap diff --git a/Data/Scripts/016_UI/017_UI_PokemonStorage.rb b/Data/Scripts/016_UI/017_UI_PokemonStorage.rb index 06adf8632..2e852135e 100644 --- a/Data/Scripts/016_UI/017_UI_PokemonStorage.rb +++ b/Data/Scripts/016_UI/017_UI_PokemonStorage.rb @@ -1967,7 +1967,9 @@ class PokemonStorageScreen box = selected[0] index = selected[1] if @storage[box, index] - raise _INTL("Position {1},{2} is not empty...", box, index) + pbDisplay("Can't place that there.") + return + echoln _INTL("Position {1},{2} is not empty...", box, index) end if box != -1 && index >= @storage.maxPokemon(box) pbDisplay("Can't place that there.") diff --git a/Data/System.rxdata b/Data/System.rxdata index 649f421519f4f794d9c7afb4ed83bb3d2a577ff5..9585092294c158c02041c1c300f96ab20d318819 100644 GIT binary patch delta 19 bcmZ2?k8#~S#tl7^EFV5FGHsq9IWH6dT=NK~ delta 19 bcmZ2?k8#~S#tl7^ERlPeSvF6QoEHiJRwf7F