fix(item): consume armor stand on placement (#2392)

This commit is contained in:
yhypno
2026-07-13 21:13:53 +05:30
committed by GitHub
parent f0374c30d4
commit 6219d36c64

View File

@@ -40,7 +40,7 @@ impl ItemMetadata for ArmorStandItem {
impl ItemBehaviour for ArmorStandItem {
fn use_on_block<'a>(
&'a self,
_item: &'a mut ItemStack,
item: &'a mut ItemStack,
player: &'a Player,
location: BlockPos,
face: BlockDirection,
@@ -90,6 +90,7 @@ impl ItemBehaviour for ArmorStandItem {
let armor_stand = ArmorStandEntity::new(entity);
world.spawn_entity(Arc::new(armor_stand)).await;
item.decrement_unless_creative(player.gamemode.load(), 1);
}
})
}