From 669b26eebc9945ef9987bd684adb8a22b34340a8 Mon Sep 17 00:00:00 2001 From: haselkern Date: Mon, 12 Jan 2015 16:32:43 +0100 Subject: [PATCH] Added PersistenceRequired tag --- index.htm | 1 + main.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/index.htm b/index.htm index de0dc99..90b54c3 100644 --- a/index.htm +++ b/index.htm @@ -38,6 +38,7 @@

+



diff --git a/main.js b/main.js index 2ccb49b..e1b5533 100644 --- a/main.js +++ b/main.js @@ -27,6 +27,7 @@ var armorstand, armorstandWrapper; //Group all the other elements //DATA -> Stuff that we'll use to generate the command. Fetched from the controls. var invisible = false; var invulnerable = false; +var persistencerequired = false; var noBasePlate = false; var noGravity = false; var showArms = false; @@ -237,6 +238,7 @@ function handleInput(){ invisible = getCheckBoxInput("invisible"); invulnerable = getCheckBoxInput("invulnerable"); + persistencerequired = getCheckBoxInput("persistencerequired"); noBasePlate = getCheckBoxInput("nobaseplate"); noGravity = getCheckBoxInput("nogravity"); showArms = getCheckBoxInput("showarms"); @@ -321,6 +323,8 @@ function generateCode(){ tags.push("Invisible:1b"); if(invulnerable) tags.push("Invulnerable:1b"); + if(persistencerequired) + tags.push("PersistenceRequired:1b"); if(noBasePlate) tags.push("NoBasePlate:1b"); if(noGravity)