We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0374c3 commit 6219d36Copy full SHA for 6219d36
1 file changed
pumpkin/src/item/items/armor_stand.rs
@@ -40,7 +40,7 @@ impl ItemMetadata for ArmorStandItem {
40
impl ItemBehaviour for ArmorStandItem {
41
fn use_on_block<'a>(
42
&'a self,
43
- _item: &'a mut ItemStack,
+ item: &'a mut ItemStack,
44
player: &'a Player,
45
location: BlockPos,
46
face: BlockDirection,
@@ -90,6 +90,7 @@ impl ItemBehaviour for ArmorStandItem {
90
let armor_stand = ArmorStandEntity::new(entity);
91
92
world.spawn_entity(Arc::new(armor_stand)).await;
93
+ item.decrement_unless_creative(player.gamemode.load(), 1);
94
}
95
})
96
0 commit comments