mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-15 18:12:08 -05:00
fix infinitecraft
This commit is contained in:
parent
f7612ed159
commit
0efd123da5
@ -57,7 +57,7 @@ async function mergeElements(element1, element2) {
|
|||||||
const element2Type = stored_names[element2.id];
|
const element2Type = stored_names[element2.id];
|
||||||
|
|
||||||
let data = await (await fetch(`/api/infinite/get?1=${encodeURIComponent(element1Type)}&2=${encodeURIComponent(element2Type)}`)).json();
|
let data = await (await fetch(`/api/infinite/get?1=${encodeURIComponent(element1Type)}&2=${encodeURIComponent(element2Type)}`)).json();
|
||||||
console.log("done request");
|
if (data.name !== "N/A" && data.emoji !== "N/A") {
|
||||||
if (stored_names.indexOf(data.item) == -1) {
|
if (stored_names.indexOf(data.item) == -1) {
|
||||||
console.log("not a thing");
|
console.log("not a thing");
|
||||||
if (localStorage.getItem("infiniteCraft.save")) {
|
if (localStorage.getItem("infiniteCraft.save")) {
|
||||||
@ -91,6 +91,7 @@ async function mergeElements(element1, element2) {
|
|||||||
}
|
}
|
||||||
mergedElement.textContent = data.emoji + " " + data.item;
|
mergedElement.textContent = data.emoji + " " + data.item;
|
||||||
return mergedElement;
|
return mergedElement;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// old code
|
// old code
|
||||||
|
Loading…
x
Reference in New Issue
Block a user