Anger nearby piglins when an ender chest is opened

EnderChestBlock.useWithoutItem calls PiglinAi.angerNearbyPiglins(true); the ender chest branch skipped the generic container path that does it.
This commit is contained in:
Kacpherek
2026-10-27 22:27:31 +01:00
parent 1feb28c045
commit e08adcd31c
+1
View File
@@ -3655,6 +3655,7 @@ impl Game<'_> {
self.open_ender_chest(key);
// EnderChestBlock.useWithoutItem
self.stats.custom("open_enderchest", 1);
self.anger_piglins(true);
if self.container_opener_event(key, true) {
self.container_edge_sound(key, true);
}