Merge pull request #1472 from ludovic111/fix/main-build-1432
🤖 Agent: merged after verify passed; main builds again. Local proof on the Mac mini: cargo check -p horizon-client --bins --tests fails on 8a4ebcc55 with the two E0599 errors and passes here.
This commit is contained in:
@@ -363,6 +363,11 @@ impl Guest {
|
||||
pub fn send(&self, packet: &play::Clientbound) {
|
||||
self.sender.send(packet.encode());
|
||||
}
|
||||
pub fn send_all(&self, packets: &[play::Clientbound]) {
|
||||
for p in packets {
|
||||
self.send(p);
|
||||
}
|
||||
}
|
||||
pub fn chunk(&self) -> (i32, i32) {
|
||||
(
|
||||
(self.position[0].floor() as i32) >> 4,
|
||||
|
||||
@@ -160,6 +160,16 @@ impl Behaviours {
|
||||
) -> bool {
|
||||
self.sim(level, ticks).grow_water_plant(pos, face)
|
||||
}
|
||||
/// The `BonemealableBlock.Type` particle spread of a block at level event
|
||||
/// 1505: Some(true) for `NEIGHBOR_SPREADER` (particles over a 3-block
|
||||
/// area above), Some(false) for `GROWER`, None when not bonemealable.
|
||||
pub fn bone_meal_spreads(&self, state: BlockStateId) -> Option<bool> {
|
||||
let kind = self.bonemeal_kind(state)?;
|
||||
Some(matches!(
|
||||
kind,
|
||||
Kind::Grass | Kind::Nylium | Kind::Netherrack | Kind::FeaturePlacer
|
||||
))
|
||||
}
|
||||
fn bonemeal_kind(&self, state: BlockStateId) -> Option<Kind> {
|
||||
let data = self.data(state);
|
||||
if !data.implements(Interface::Bonemealable) {
|
||||
|
||||
Reference in New Issue
Block a user