fix kick message

This commit is contained in:
Edvin Bryntesson 2024-08-21 20:19:18 +02:00
parent 3bbe19f4d4
commit dda2958e2a
No known key found for this signature in database

View File

@ -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;