Skip to content

Commit

Permalink
Fix: block place in creative
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowiiii committed Oct 25, 2024
1 parent b68ad51 commit a395e61
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pumpkin/src/entity/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ use pumpkin_protocol::{
server::play::{
SChatCommand, SChatMessage, SClientInformationPlay, SConfirmTeleport, SInteract,
SPlayerAbilities, SPlayerAction, SPlayerCommand, SPlayerPosition, SPlayerPositionRotation,
SPlayerRotation, SSetHeldItem, SSetPlayerGround, SSwingArm, SUseItem, SUseItemOn,
ServerboundPlayPackets,
SPlayerRotation, SSetCreativeSlot, SSetHeldItem, SSetPlayerGround, SSwingArm, SUseItem,
SUseItemOn, ServerboundPlayPackets,
},
RawPacket, ServerPacket, VarInt,
};
Expand Down Expand Up @@ -467,7 +467,10 @@ impl Player {
}
ServerboundPlayPackets::UpdateCommandBlock => {}
ServerboundPlayPackets::UpdateCommandBlockMinecart => {}
ServerboundPlayPackets::CreativeInventoryAction => {}
ServerboundPlayPackets::CreativeInventoryAction => {
self.handle_set_creative_slot(SSetCreativeSlot::read(bytebuf)?)
.await?;
}
ServerboundPlayPackets::UpdateJigsawBlock => {}
ServerboundPlayPackets::UpdateStructureBlock => {}
ServerboundPlayPackets::UpdateSign => {}
Expand Down

0 comments on commit a395e61

Please sign in to comment.