Skip to content

Commit

Permalink
[CORE] Make the Sizing of an ArmorStand backwards Compatible
Browse files Browse the repository at this point in the history
Signed-off-by: Wolfieheart <[email protected]>
  • Loading branch information
Wolfieheart committed Dec 9, 2024
1 parent ad77f73 commit 7de1b78
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,21 +228,18 @@ private void choosePreset(ArmorStand armorStand) {
}

//Size Menu Refactor
/* void toggleSize(ArmorStand armorStand) {
if (getPlayer().hasPermission("asedit.togglesize")) {
armorStand.setSmall(!armorStand.isSmall());
} else {
sendMessage("nopermoption", "warn", "size");
}
}
*/
private void chooseSize(ArmorStand armorStand){
if(!getPlayer().hasPermission("asedit.togglesize")){
sendMessage("nopermoption", "warn", "size");
return;
} else {
sizeModificationMenu = new SizeMenu(this, armorStand);
sizeModificationMenu.openMenu();
if(plugin.getServer().getMinecraftVersion().compareTo("1.21") < 0){
sizeModificationMenu = new SizeMenu(this, armorStand);
sizeModificationMenu.openMenu();
} else {
armorStand.setSmall(!armorStand.isSmall());
}

}
}

Expand Down

0 comments on commit 7de1b78

Please sign in to comment.