-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement anvil and enchantment table inventorys #269
Conversation
new file: src/inventory/enchanting_table_inventory.rs modified: src/inventory/mod.rs modified: src/render/inventory.rs modified: src/server/mod.rs modified: src/ui/mod.rs
version of on_resize for all inventorys modified: protocol/src/types/mod.rs modified: src/inventory/anvil_inventory.rs modified: src/inventory/chest_inventory.rs modified: src/inventory/crafting_table_inventory.rs modified: src/inventory/dropper_inventory.rs modified: src/inventory/enchanting_table_inventory.rs modified: src/inventory/furnace_inventory.rs modified: src/inventory/mod.rs modified: src/inventory/player_inventory.rs modified: src/render/hud.rs
Is this still in work or did you just forget to un-draft it? |
modified: inventory/anvil_inventory.rs
yes, now it should be ready for review |
pub enum Material { | ||
Air, // 1.7.10 (id: 0, stack: 0)| 1.13 (id: 9648) | ||
#[default] | ||
Air, // 1.7.10 (id: 0, stack: 0)| 1.13 (id: 9648) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you shift this comment back?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried doing this already, but for some reason cargo fmt
shifts this one line forward every time it is run.
0 => update_level_required(0, self), | ||
1 => update_level_required(1, self), | ||
2 => update_level_required(2, self), | ||
3 => (), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a comment explaining why this has no action associated with it?
_ => warn!("the server sent invalid data for the enchanting table"), | ||
} | ||
|
||
// this fixes a bug in mc protocol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a bit vague, could you elaborate on that?
This is really cool, thanks! |
The inventorys are working at this stage but some of the code especially for the enchantment table is a mess. I will clean it up soon. If there are problems in the way i implemented these or bugs, let me know. This is some progress to #2