-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Go Home After Mining and check Ineventory whileMining #1064
base: master
Are you sure you want to change the base?
Conversation
# Conflicts: # src/api/java/baritone/api/utils/ExampleBaritoneControl.java # src/main/java/baritone/process/MineProcess.java
…king inventory to mining and farming processes.
DRY out the inventory management code.
Conform to code review, remove redundant if statement.
Good addition! |
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.
Rebase this to master, and remove excess indenting
I think most of my code is outdated and I will rework it in the next days |
# Conflicts: # src/main/java/baritone/command/defaults/DefaultCommands.java # src/main/java/baritone/process/MineProcess.java
My guy, just use intellij's autoformat instead of manually fixing everything. Ctrl alt O + Ctrl alt L |
Yeah I know, sadly I didn't use it when I created this PR 1 year ago. BTW autoformat didn't remove all blank lines. |
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.
Haven't tested this in an IDE, but this is my initial pass-through on it.
for(BlockOptionalMeta bom : filter.blocks()) { | ||
Block block = bom.getBlock(); | ||
Item item = block.getItemDropped(block.getDefaultState(), new Random(), 0); | ||
Item ore = Item.getItemFromBlock(block); |
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.
Isn't there a method in block like block.asItem...
I know there is in newer mc versions, as getItemFromBlock does become deprecated
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 didn't found the method in this mc version.
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.
Ah, alright. I'll leave this comment though for the Baritone maintainers to use asItem for up-porting this
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.
LGTM, besides one minor formatting suggestion
just realized this solves #605 |
updated pull request #910 to baritone 1.2.10 . see pull request #910 for further information