Skip to content

Commit

Permalink
fix kick message
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryntet committed Aug 21, 2024
1 parent 3bbe19f commit dda2958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pumpkin/src/client/player_packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ impl Client {
pub fn handle_set_creative_slot(&mut self, _server: &mut Server, packet: SSetCreativeSlot) {
let gamemode = self.player.as_ref().unwrap().gamemode;
if gamemode != GameMode::Creative {
self.kick("CHEATER")
self.kick("Invalid action, you can only do that if you are in creative")
}
let inventory = &mut self.player.as_mut().unwrap().inventory;

Expand Down

0 comments on commit dda2958

Please sign in to comment.