Run neighbour updates when a mob trampling farmland places dirt

This commit is contained in:
Kacpherek
2026-10-26 19:07:02 +01:00
parent c1844dfe57
commit 2277c85fc3
+3 -3
View File
@@ -1037,9 +1037,9 @@ impl Game<'_> {
[0.0, 0.2, 0.0],
10,
),
MobEvent::SetBlock { pos, state } => {
self.world.set(pos[0], pos[1], pos[2], state)?
}
// `Level.setBlockAndUpdate`: neighbour and shape updates, so a crop
// above trampled farmland breaks and drops.
MobEvent::SetBlock { pos, state } => self.level_set(pos, state)?,
MobEvent::SetDoorOpen { pos, open } => {
let pos = BlockPos::new(pos[0], pos[1], pos[2]);
self.with_level(|b, level, ticks| b.set_door_open(level, ticks, pos, open));