Let a sneaking player open chest and hopper minecarts

This commit is contained in:
Kacpherek
2026-10-26 15:11:52 +01:00
parent 8027cb4176
commit b7c47ccbf9
+1 -3
View File
@@ -1063,10 +1063,8 @@ impl Game<'_> {
}
self.riding = Some(self.carts[i].id);
}
// AbstractMinecartContainer.interact: no sneak check.
CartKind::Chest | CartKind::Hopper => {
if sneaking {
return false;
}
let c = self.carts[i].clone();
let key = (i32::MAX - 15, CART_KEY_Y, c.id as i32);
self.world