mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user