data displaying properly now
This commit is contained in:
@@ -19,8 +19,7 @@ defmodule CobblemonUi.CobblemonFS.PartyStore do
|
||||
def parse(path) do
|
||||
with {:ok, data} <- File.read(path),
|
||||
{:ok, {_name, root}} <- NBT.decode(data) do
|
||||
party = Map.get(root, "party", %{})
|
||||
slots = for i <- 0..(@party_slots - 1), do: Pokemon.normalize(Map.get(party, "slot#{i}"))
|
||||
slots = for i <- 0..(@party_slots - 1), do: Pokemon.normalize(Map.get(root, "Slot#{i}"))
|
||||
{:ok, slots}
|
||||
else
|
||||
{:error, :enoent} -> {:error, :not_found}
|
||||
|
||||
Reference in New Issue
Block a user