mirror of
https://github.com/haselkern/Minecraft-ArmorStand.git
synced 2025-05-17 15:05:33 +00:00
Increased character limit for command block hint
Starting with Minecraft Version 1.11
This commit is contained in:
parent
c6fb3236bd
commit
b70c469ecd
2 changed files with 4 additions and 2 deletions
|
@ -409,7 +409,9 @@ function updateUI(){
|
|||
|
||||
// Generate code
|
||||
$("#code").text(generateCode());
|
||||
if(generateCode().length > 100){
|
||||
// Show hint, when command is too long
|
||||
let characterLimit = (mcVersion == "1.8" || mcVersion == "1.9") ? 100 : 256;
|
||||
if(generateCode().length > characterLimit){
|
||||
$("#codeinfo").slideDown();
|
||||
}
|
||||
else{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue