cabaletta / cabaletta/baritone
crash on custom goal request
- Dominant language
- Java
- Stars
- 9.2k
- Forks
- 2.1k
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 3
Description
```java
case ShulkerSearchPathing: {
if (baritone.getCustomGoalProcess().isActive()) {
Helper.HELPER.logDirect("custom goal to path to shulker");
return; // Wait to get there
}
curCheckingShulker = getShulkerToCheck();
Helper.HELPER.logDirect("found current shulker: " + curCheckingShulker.toString());
if (curCheckingShulker == null) {
...
}
Optional shulkerReachable = RotationUtils.reachable(ctx.player(), curCheckingShulker,
ctx.playerController().getBlockReachDistance());
if (shulkerReachable.isPresent()) {
...
} else {
Helper.HELPER.logDirect("Going to shulker");
// crash happens here vvv
baritone.getCustomGoalProcess().setGoalAndPath(new GoalBlock(getPathingSpotByShulker(curCheckingShulker)));
}
break;
}
```
This leads to this error
```java
[19:38:34] [Render thread/ERROR]: Unreported exception thrown!
java.lang.IllegalArgumentException: Multiple entries with same key: class_2338{x=-322, y=63, z=-61}=net.minecraft.class_2627@5c367bff and BetterBlockPos{x=-322,y=63,z=-61}=net.minecraft.class_2627@32300150
```
and crashes the rendering thread so crashing the game.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.