Merge pull request #2268 from kacpherek/fix/minecart-chest-sneak-open
🤖 Agent: Read against the vanilla 26.3 sources (Let a sneaking player open chest and hopper minecarts) and proven in contrib-gate-21's union of 72 kacpherek PRs: 95 parity harnesses on playhorizon and the Mac mini, clippy, 1534 tests, lan_e2e 23 checks in-frame and with --server-thread. Thanks @kacpherek!
This commit is contained in:
@@ -1066,10 +1066,8 @@ impl Game<'_> {
|
|||||||
}
|
}
|
||||||
self.riding = Some(self.carts[i].id);
|
self.riding = Some(self.carts[i].id);
|
||||||
}
|
}
|
||||||
|
// AbstractMinecartContainer.interact: no sneak check.
|
||||||
CartKind::Chest | CartKind::Hopper => {
|
CartKind::Chest | CartKind::Hopper => {
|
||||||
if sneaking {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
let c = self.carts[i].clone();
|
let c = self.carts[i].clone();
|
||||||
let key = (i32::MAX - 15, CART_KEY_Y, c.id as i32);
|
let key = (i32::MAX - 15, CART_KEY_Y, c.id as i32);
|
||||||
self.world
|
self.world
|
||||||
|
|||||||
Reference in New Issue
Block a user