Fixed:
- Arms must now be empty to remove them.
This commit is contained in:
BigPappa committed 2026-08-28 13:39:56 -05:00
1 parent b8b246cb16
commit 2502ceab44
2 files changed
+25 -3

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@
<groupId>com.rsscripting</groupId> <groupId>com.rsscripting</groupId>
<artifactId>rs-mobstand</artifactId> <artifactId>rs-mobstand</artifactId>
<version>1.1.2</version> <version>1.1.3</version>
<name>RS-MobStand</name> <name>RS-MobStand</name>
@@ -832,6 +832,28 @@ public class MenuListener implements Listener {
// Arms toggle // Arms toggle
if (event.getSlot() == 22) { if (event.getSlot() == 22) {
boolean mainHandOccupied =
!armorStand.getEquipment()
.getItemInMainHand()
.getType()
.isAir();
boolean offHandOccupied =
!armorStand.getEquipment()
.getItemInOffHand()
.getType()
.isAir();
if (mainHandOccupied || offHandOccupied) {
player.sendMessage(
ChatColor.RED
+ "You must remove all items from the MobStand's hands before disabling its arms."
);
return;
}
boolean arms = boolean arms =
armorStand.hasArms(); armorStand.hasArms();
@@ -842,9 +864,9 @@ public class MenuListener implements Listener {
player.sendMessage( player.sendMessage(
arms arms
? ChatColor.GREEN ? ChatColor.GREEN
+ "MobStand arms enabled." + "MobStand arms added."
: ChatColor.GREEN : ChatColor.GREEN
+ "MobStand arms disabled." + "MobStand arms removed."
); );
StandMenu.open( StandMenu.open(