-
Notifications
You must be signed in to change notification settings - Fork 23
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
Bug fixes and new features #23
base: main
Are you sure you want to change the base?
Conversation
…s to try and make free space...
…od of it picking up the items
…sabled and also fixed an issue with aiming at entity incorrectly on servers specifically chikens cant be killed
…esource tasks are running for a long time
…mes becomes null causing a crash
…clef into LegitMineFeature
…ade bot get a stone sword if no other swords are available
…s system gets stuck
… block as if it stops early it can get stuck
…and place penalty as well as cost heuristics
…is dangerous check to drop and block searches
…cursive command execution.
The FPS drops you are talking about is likely a memory leak in the mod. Fixed it on my fork in this commit: MiranCZ/altoclef@2c1863b |
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.
some formatting issues and coding conventions
if(block == Blocks.COAL_ORE || block == Blocks.DEEPSLATE_COAL_ORE) | ||
{ | ||
maxHeight = 192; | ||
optimalHeight = 96; | ||
minHeight = 0; | ||
}else | ||
if(block == Blocks.COPPER_ORE || block == Blocks.DEEPSLATE_COPPER_ORE) | ||
{ | ||
maxHeight = 112; | ||
optimalHeight = 48; | ||
minHeight = -16; | ||
}else | ||
if(block == Blocks.IRON_ORE || block == Blocks.DEEPSLATE_IRON_ORE) | ||
{ | ||
maxHeight = 72; | ||
optimalHeight = 16; | ||
minHeight = -32; | ||
}else | ||
if(block == Blocks.LAPIS_ORE || block == Blocks.DEEPSLATE_LAPIS_ORE) | ||
{ | ||
maxHeight = 64; | ||
optimalHeight = 0; | ||
minHeight = -59; | ||
}else | ||
if(block == Blocks.GOLD_ORE || block == Blocks.DEEPSLATE_GOLD_ORE) | ||
{ | ||
maxHeight = 32; | ||
optimalHeight = -16; | ||
minHeight = -59; | ||
}else | ||
if(block == Blocks.DIAMOND_ORE || block == Blocks.DEEPSLATE_DIAMOND_ORE) | ||
{ | ||
maxHeight = 15; | ||
optimalHeight = -59; | ||
minHeight = -59; | ||
}else | ||
if(block == Blocks.REDSTONE_ORE || block == Blocks.DEEPSLATE_REDSTONE_ORE) | ||
{ | ||
maxHeight = 15; | ||
optimalHeight = -59; | ||
minHeight = -59; | ||
}else | ||
{ | ||
maxHeight = 8; | ||
optimalHeight = 8; | ||
minHeight = 8; | ||
} |
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.
Create a map for this instead
try { | ||
int num = Integer.parseInt(part); | ||
numbers.add(num); | ||
} catch (NumberFormatException e) { | ||
try { | ||
dimension = (Dimension) Arg.parseEnum(part, Dimension.class); | ||
} catch (CommandException e1) { | ||
// TODO Auto-generated catch block | ||
e1.printStackTrace(); | ||
Debug.logWarning(e1.getMessage()); | ||
return null; | ||
} | ||
break; |
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.
Use a "look before you leap" approach instead of "ask for forgiveness than permission"
try { | ||
int num = Integer.parseInt(part); | ||
numbers.add(num); | ||
} catch (NumberFormatException e) { | ||
try { | ||
dimension = (Dimension) Arg.parseEnum(part, Dimension.class); | ||
} catch (CommandException e1) { | ||
// TODO Auto-generated catch block | ||
e1.printStackTrace(); | ||
} | ||
break; |
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.
Same thing, LBYL instead of EAFP
src/main/java/adris/altoclef/tasks/resources/MineAndCollectTask.java
Outdated
Show resolved
Hide resolved
src/main/java/adris/altoclef/tasks/resources/MineAndCollectTask.java
Outdated
Show resolved
Hide resolved
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.
Additional stuff
…r formal and Added raw blocks to list
Summary
************* Fixes *************
************* Additions *************
************* Bugs *************
No currently known bugs
Information
Checklist