1
0

Continue with placement when using iron doors

This commit is contained in:
Tiger Wang 2020-08-04 17:54:37 +01:00
parent 71ba18d6c6
commit 766a950d20

View File

@ -75,11 +75,13 @@ bool cBlockDoorHandler::OnUse(
a_Player.GetWorld()->BroadcastSoundParticleEffect(EffectID::SFX_RANDOM_WOODEN_DOOR_OPEN, a_BlockPos, 0, a_Player.GetClientHandle());
break;
}
// Prevent iron door from opening on player click
case E_BLOCK_IRON_DOOR:
{
// Prevent iron door from opening on player click (#2415):
OnCancelRightClick(a_ChunkInterface, a_WorldInterface, a_Player, a_BlockPos, a_BlockFace);
break;
// Allow placement actions to instead take place:
return false;
}
}