fix kick message
This commit is contained in:
parent
3bbe19f4d4
commit
dda2958e2a
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user