Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
Removed AutoEat
Browse files Browse the repository at this point in the history
  • Loading branch information
AS1100K committed Aug 13, 2024
1 parent 98fb938 commit 1f3f4f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions aether-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed
- Removed azalea patch i.e. [`better-1.20.6`](https://github.com/as1100k-forks/azalea.git)

### Fixed
- Removed Auto Eat [Issue #24](https://github.com/AS1100K/aether/issues/24)

## [0.3.0-beta.1] 07-08-2024

### Added
Expand Down
6 changes: 0 additions & 6 deletions aether-core/src/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ pub fn handle_chat(
mut commands: Commands,
mut send_chat_event: EventWriter<SendChatEvent>,
mut load_pearl: EventWriter<LoadPearl>,
mut start_auto_eat: EventWriter<StartAutoEat>,
mut stop_auto_eat: EventWriter<StopAutoEat>,
) {
for ChatReceivedEvent { entity, packet } in events.read() {
for (state, in_world) in query.iter() {
Expand Down Expand Up @@ -93,9 +91,6 @@ pub fn handle_chat(
},
});
commands.entity(*entity).insert(AutoTotem);
start_auto_eat.send(StartAutoEat {
use_inventory: true,
});

if let Some(discord_bot) = &discord_bot_res {
if let Some(chat_relay_channel_id) = state.chat_relay_channel_id {
Expand Down Expand Up @@ -140,7 +135,6 @@ pub fn handle_chat(
commands.entity(*entity).remove::<InWorld>();
commands.entity(*entity).remove::<AntiAFK>();
commands.entity(*entity).remove::<AutoTotem>();
stop_auto_eat.send(StopAutoEat);
commands.entity(*entity).remove::<DiscordChatRelay>();
commands.entity(*entity).remove::<DiscordChannelId>();
}
Expand Down

0 comments on commit 1f3f4f7

Please sign in to comment.