Tierlist Fix

This commit is contained in:
Dreamgineer
2025-10-23 09:23:05 -04:00 Unverified
parent fa25a97306
commit ab80ed0e72
2 changed files with 10 additions and 3 deletions
+9 -2
View File
@@ -278,11 +278,18 @@ export function TierList({
newPlacements[sourceCell] = arrayMove(items, oldIndex, newIndex);
} else {
// Move to different cell
// Move to different cell - INSERT AT HOVERED POSITION
const targetItems = [...placements[targetCell]];
const insertIndex = targetItems.indexOf(targetId);
newPlacements = {
...newPlacements,
[sourceCell]: placements[sourceCell].filter((id) => id !== charId),
[targetCell]: [...placements[targetCell], charId],
[targetCell]: [
...targetItems.slice(0, insertIndex),
charId,
...targetItems.slice(insertIndex),
],
};
}
} else {
+1 -1
View File
@@ -5,7 +5,7 @@ import { AmberElementMap } from "@/lib/const";
import { db } from "@/lib/db";
import { cdn, characters, versions } from "@/lib/db/schema";
const exclude = ["Traveler"];
const exclude = ["Traveler", "Manekin", "Manekina"];
const extra: Avatar[] = [
{
id: "10000005-pyro",