Skip to content

Commit 6219d36

Browse files
authored
fix(item): consume armor stand on placement (Pumpkin-MC#2392)
1 parent f0374c3 commit 6219d36

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pumpkin/src/item/items/armor_stand.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl ItemMetadata for ArmorStandItem {
4040
impl ItemBehaviour for ArmorStandItem {
4141
fn use_on_block<'a>(
4242
&'a self,
43-
_item: &'a mut ItemStack,
43+
item: &'a mut ItemStack,
4444
player: &'a Player,
4545
location: BlockPos,
4646
face: BlockDirection,
@@ -90,6 +90,7 @@ impl ItemBehaviour for ArmorStandItem {
9090
let armor_stand = ArmorStandEntity::new(entity);
9191

9292
world.spawn_entity(Arc::new(armor_stand)).await;
93+
item.decrement_unless_creative(player.gamemode.load(), 1);
9394
}
9495
})
9596
}

0 commit comments

Comments
 (0)