From eb1fcac850a11113770fced3746e5411128809fa Mon Sep 17 00:00:00 2001 From: thelennylord <32369619+thelennylord@users.noreply.github.com> Date: Fri, 30 Oct 2020 01:24:16 +0530 Subject: [PATCH] Fix give code option in equipment not working Fixes #29 --- js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/main.js b/js/main.js index be30165..c91ec1d 100644 --- a/js/main.js +++ b/js/main.js @@ -760,7 +760,7 @@ function getHeadItem(){ if (mcVersion == "1.8" || mcVersion == "1.10" || mcVersion == "1.11") { return '{id:"skull",Count:1b,Damage:3b,tag:{'+parsed+'}}'; - } else if (mcVersion == "1.13") { + } else { return '{id:"player_head",Count:1b,tag:{'+parsed+'}}'; } } @@ -771,7 +771,7 @@ function getHeadItem(){ skullOwnerRaw = skullOwnerRaw.substring(0, skullOwnerRaw.indexOf("}")); if (mcVersion == "1.8" || mcVersion == "1.10" || mcVersion == "1.11") { return '{id:"skull",Count:1b,Damage:3b,tag:{'+skullOwnerRaw+'}}'; - } else if (mcVersion == "1.13") { + } else { return '{id:"player_head",Count:1b,tag:{'+skullOwnerRaw+'}}'; } } @@ -1150,4 +1150,4 @@ function deleteSave(data) { localStorage.removeItem(data); loadScreen(); alert(`${data} has been deleted!`); -}; \ No newline at end of file +};