fix: mangrove propagule panics (#3088)

checking if a mangrove propagule can be placed used the state of the existing block (not a propagule) to create the propagule's block properties.
This commit is contained in:
PigTurtle
2026-08-28 13:47:42 +02:00
committed by GitHub
parent 6eb02f65b9
commit a18011301c

View File

@@ -78,8 +78,7 @@ impl MangrovePropaguleBlock {
impl BlockBehaviour for MangrovePropaguleBlock {
fn can_place_at(&self, args: CanPlaceAtArgs<'_>) -> bool {
let state_id = args.block_accessor.get_block_state_id(args.position);
let props = MangrovePropaguleLikeProperties::from_state_id(state_id, args.block);
let props = MangrovePropaguleLikeProperties::from_state_id(args.state.id, args.block);
Self::can_survive(args.block_accessor, args.position, &props)
}