Skip to content

Commit

Permalink
fix recipes and commands packets
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-1 committed Apr 11, 2024
1 parent 42bc86a commit e05c842
Show file tree
Hide file tree
Showing 3 changed files with 387 additions and 6 deletions.
7 changes: 4 additions & 3 deletions azalea-inventory/src/slot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ use std::io::{Cursor, Write};
/// Either an item in an inventory or nothing.
#[derive(Debug, Clone, Default, PartialEq)]
pub enum ItemSlot {
#[default]
Empty,
Present(ItemSlotData),
TODO: make this use the new network protocol and implement all the components
// #[default]
// Empty,
// Present(ItemSlotData),
}

impl ItemSlot {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ pub enum BrigadierParser {
Swizzle,
Team,
ItemSlot,
ItemSlots,
ResourceLocation,
Function,
EntityAnchor,
Expand All @@ -143,6 +144,9 @@ pub enum BrigadierParser {
TemplateMirror,
TemplateRotation,
Heightmap,
LootTable,
LootPredicate,
LootModifier,
Uuid,
}

Expand Down
Loading

0 comments on commit e05c842

Please sign in to comment.