This commit is contained in:
1 parent
35c3ebf6b5
commit
2c0e981a85
2 files changed
+9
-2
No files matched your search
@@ -544,6 +544,11 @@ impl BedrockClient {
|
||||
let block = world.get_block(&data.block_position);
|
||||
let server = world.server.upgrade().expect("Server is gone");
|
||||
|
||||
if player.gamemode.load() == GameMode::Spectator {
|
||||
// TODO: openMenu ?
|
||||
return;
|
||||
}
|
||||
|
||||
if data.action_type.0 == 0 {
|
||||
// Click block
|
||||
let held_item = player.inventory.held_item();
|
||||
|
||||
@@ -2159,8 +2159,10 @@ impl JavaClient {
|
||||
return Err(BlockPlacingError::InvalidHand);
|
||||
};
|
||||
|
||||
//TODO this.player.resetLastActionTime();
|
||||
//TODO this.gameModeForPlayer == GameType.SPECTATOR
|
||||
if player.gamemode.load() == GameMode::Spectator {
|
||||
// TODO: openMenu
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let inventory = player.inventory();
|
||||
let held_item = inventory.held_item();
|
||||
|
||||
Reference in new issue
Block a user