cabaletta / cabaletta/baritone

`BlockChangeEvent` only triggers on batch changes

Open
#4,708 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
9.2k
Forks
2.1k
Avg merge
4d 3h
Merged PRs (30d)
3

Description

## Some information
Minecraft version: 1.19.4
Baritone version: v1.9.2-56-g497fb7482 (https://github.com/cabaletta/baritone/commit/497fb74829febf5bcf48732fa03abb3b90662dcb)
Other mods (if used): None

## Exception, error or logs
None

## How to reproduce
1. Modify `GameEventHandler` to log `BlockChangeEvent`s
```diff
@Override
public void onBlockChange(BlockChangeEvent event) {
+ logDirect("BlockChangeEvent");
+ event.getBlocks().stream().forEach(p -> {
+ logDirect(p.first() + " is now " + p.second());
+ });
if (Baritone.settings().repackOnAnyBlockChange.value) {
final boolean keepingTrackOf = event.getBlocks().stream()
```
2. Join a (single player) world
3. break or place a block
4. No events logged
5. Change a lot of blocks at once (e.g. `/fill ~ ~ ~ ~10 ~20 ~10 stone`)
6. Events logged (I got one per affected subchunk)

## Modified settings
None

## Final checklist
- [x] I know how to properly use check boxes
- [x] I have included the version of Minecraft I'm running, Baritone's version and Forge mods (if used).
- [x] I have included steps to reproduce the issue.
- [x] I have not pasted or written any OwO's or UwU's in this issue.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.